diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-09-24 13:13:40 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-16 17:56:10 +0200 |
| commit | 15805cfad576d638a00c36e5c64b5625a2e6d189 (patch) | |
| tree | ebd89230db3067fd24470597ee2f755452a51b8e | |
| parent | 62fc0ac55ac240f8da1593f6de96341a1e3de87e (diff) | |
Hide compiler warning.
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.
| -rw-r--r-- | wscript | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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', |
