From 38f32bfbfafcb29d6b3dbc9dd8c24dc474de32ec Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 24 Sep 2023 13:13:40 +0200 Subject: Hide compiler warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In file included from ../src/lib/grok/context.h:29, from ../src/lib/j2k_encoder.h:36, from ../src/lib/grok_j2k_encoder_thread.cc:5: In member function ‘void grk_plugin::Synch::unlink()’, inlined from ‘grk_plugin::Synch::Synch(const string&, const string&)’ at ../src/lib/grok/messenger.h:200:10: ../src/lib/grok/messenger.h:247:52: error: ‘this’ pointer is null [-Werror=nonnull] 247 | getMessengerLogger()->error("Error unlinking semaphore %s: %s", sentSemName_.c_str(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 248 | strerror(errno)); on Ubuntu 22.04. --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index 1c329954c..777f33396 100644 --- a/wscript +++ b/wscript @@ -112,6 +112,8 @@ def configure(conf): '-Wextra', '-Wwrite-strings', '-Wno-error=deprecated', + # getMessengerLogger() in the grok code triggers these warnings + '-Wno-nonnull', # I tried and failed to ignore these with _Pragma '-Wno-ignored-qualifiers', '-D_FILE_OFFSET_BITS=64', -- cgit v1.2.3