diff options
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 03c2b242fb..50039fccc3 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -629,7 +629,7 @@ def SAMBA_CONFIG_H(conf, path=None): # This check is because for ldb_search(), a NULL format string # is not an error, but some compilers complain about that. - if CHECK_CFLAGS(conf, "-Werror=format", ''' + if CHECK_CFLAGS(conf, ["-Werror=format", "-Wformat=2"], ''' int testformat(char *format, ...) __attribute__ ((format (__printf__, 1, 2))); int main(void) { |