Commit 77e0cb82 authored by Daniel Salzman's avatar Daniel Salzman

contrib: disable -Wshadow with embedded LMDB

parent ed17fa2c
......@@ -23,6 +23,7 @@ src/contrib/lmdb/lmdb.h
src/contrib/lmdb/mdb.c
src/contrib/lmdb/midl.c
src/contrib/lmdb/midl.h
src/contrib/lmdb/mute_warnings.h
src/contrib/macros.h
src/contrib/mempattern.c
src/contrib/mempattern.h
......
......@@ -3,7 +3,8 @@ noinst_LTLIBRARIES += libcontrib.la
libcontrib_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY)
libcontrib_la_LDFLAGS = $(AM_LDFLAGS) $(LDFLAG_EXCLUDE_LIBS)
if !HAVE_LMDB
libcontrib_la_LIBADD = $(pthread_LIBS)
libcontrib_la_CPPFLAGS += -include contrib/lmdb/mute_warnings.h
libcontrib_la_LIBADD = $(pthread_LIBS)
endif !HAVE_LMDB
EXTRA_DIST += \
......@@ -67,7 +68,8 @@ libcontrib_la_SOURCES += \
contrib/lmdb/lmdb.h \
contrib/lmdb/mdb.c \
contrib/lmdb/midl.c \
contrib/lmdb/midl.h
contrib/lmdb/midl.h \
contrib/lmdb/mute_warnings.h
endif !HAVE_LMDB
if HAVE_LIBDNSTAP
......
/* Copyright (C) 2018 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
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma GCC diagnostic ignored "-Wshadow"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment