From 9e15129d9d3e298bee756e17977747d2a636cc9d Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 22 Feb 2022 22:46:53 +0100 Subject: [PATCH] Ignore null-dereference warning It is about ``` return result_type{ storageEntry.id, storageEntry.ref.relatedStorage }; ``` but it isn't clear why the compiler thinks there's a problem. --- libpkg/data/storage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpkg/data/storage.cpp b/libpkg/data/storage.cpp index 57c9752..7ae69ba 100644 --- a/libpkg/data/storage.cpp +++ b/libpkg/data/storage.cpp @@ -1,3 +1,6 @@ +// ignore warning about "return result_type{ storageEntry.id, storageEntry.ref.relatedStorage };" +#pragma GCC diagnostic ignored "-Wnull-dereference" + #include "./storageprivate.h" #include