From: Michael Adam Date: Thu, 14 Jul 2016 08:01:15 +0000 (+0200) Subject: build: avoid -Wtautological-compare errors from gcc6+ by disabling it globally X-Git-Tag: tdb-1.3.10~394 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6ee40194995617d6f08f050d6b044d80bfab19c;p=thirdparty%2Fsamba.git build: avoid -Wtautological-compare errors from gcc6+ by disabling it globally Signed-off-by: Michael Adam Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Jul 15 04:31:27 CEST 2016 on sn-devel-144 --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 09ce2189d8a..5f35d776153 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -725,6 +725,7 @@ int main(void) { if Options.options.picky_developer: conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Werror -Wno-error=deprecated-declarations', testflags=True) + conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=tautological-compare', testflags=True) if Options.options.fatal_errors: conf.ADD_CFLAGS('-Wfatal-errors', testflags=True)