[SCM] Samba Shared Repository - branch master updated

Andrew Bartlett abartlet at samba.org
Fri Aug 17 06:51:03 MDT 2012

The branch, master has been updated
       via  6ce362a build: Ensure -Werror=format works with -Wformat=2 on NULL format strings
      from  a7b8e9f5 s4-dsdb: Ensure we always free tmp_ctx in schema refresh check


- Log -----------------------------------------------------------------
commit 6ce362afeff0cb5094eb6b1ecfa639252cdcc7f8
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Fri Aug 17 20:43:07 2012 +1000

    build: Ensure -Werror=format works with -Wformat=2 on NULL format strings
    This should fix the build on some gcc versions, (noticed on FreeBSD by Volker).
    We want the protection of -Werror=format without the errors extending
    to the format string itself being NULL, because that is valid for
    Andrew Bartlett
    Autobuild-User(master): Andrew Bartlett <abartlet at samba.org>
    Autobuild-Date(master): Fri Aug 17 14:50:16 CEST 2012 on sn-devel-104


Summary of changes:
 buildtools/wafsamba/samba_autoconf.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 03c2b24..50039fc 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) {

Samba Shared Repository

More information about the samba-cvs mailing list