From: Daniel Salzman Date: Wed, 27 Feb 2019 12:56:00 +0000 (+0100) Subject: lmdb: mute 'unused variable' if NDEBUG X-Git-Tag: v2.8.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f37f54c64dce30a2b4cd51ce85abcd18fce6c55a;p=thirdparty%2Fknot-dns.git lmdb: mute 'unused variable' if NDEBUG --- diff --git a/src/contrib/lmdb/mute_warnings.h b/src/contrib/lmdb/mute_warnings.h index c8d83291e2..0b14099738 100644 --- a/src/contrib/lmdb/mute_warnings.h +++ b/src/contrib/lmdb/mute_warnings.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2018 CZ.NIC, z.s.p.o. +/* Copyright (C) 2019 CZ.NIC, z.s.p.o. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -14,4 +14,8 @@ along with this program. If not, see . */ +#pragma GCC diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wunknown-warning-option" +#pragma clang diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" #pragma GCC diagnostic ignored "-Wshadow"