]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
lmdb: mute 'unused variable' if NDEBUG
authorDaniel Salzman <daniel.salzman@nic.cz>
Wed, 27 Feb 2019 12:56:00 +0000 (13:56 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Wed, 27 Feb 2019 13:31:53 +0000 (14:31 +0100)
src/contrib/lmdb/mute_warnings.h

index c8d83291e2a8abfb998cd640239da238beaa3068..0b140997385ee0de423a0ecf52778d3e08f95cf5 100644 (file)
@@ -1,4 +1,4 @@
-/*  Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/*  Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
 
     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 <https://www.gnu.org/licenses/>.
  */
 
+#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"