wafsamba: use -Wno-error=deprecated-declarations in picky-developer mode
authorStefan Metzmacher <metze@samba.org>
Thu, 22 May 2014 08:41:33 +0000 (10:41 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 25 Nov 2014 06:25:46 +0000 (07:25 +0100)
Currently we use too many deprecated function like
dcerpc_binding_handle_set_sync_ev() and others, but this should not be a reason
to require 'allow_warnings=True'.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/samba_autoconf.py

index c1938731164db40efc52895b80aa42c4ff287f3b..c8180253d863042724b43ff8fbe77cff32dd106c 100644 (file)
@@ -691,7 +691,7 @@ int main(void) {
             conf.env['EXTRA_CFLAGS'].extend(TO_LIST("-Werror=format"))
 
     if Options.options.picky_developer:
-        conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Werror', testflags=True)
+        conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Werror -Wno-error=deprecated-declarations', testflags=True)
 
     if Options.options.fatal_errors:
         conf.ADD_CFLAGS('-Wfatal-errors', testflags=True)