wfabuild: fix the -errwarn compile flag test
[obnox/samba/samba-obnox.git] / lib / replace / wscript
index c21a8f87e9de77db14abda77000fd95547d61ed3..7c2d5191d79157e61d377e455f676600d043731d 100644 (file)
@@ -54,7 +54,7 @@ struct foo bar = { .y = 'X', .x = 1 };
             break
 
     # Try to find the right extra flags for -Werror behaviour
-    for f in ["-Werror", "-w2", "-errwarn"]:
+    for f in ["-Werror", "-w2", "-errwarn=%all"]:
         if conf.CHECK_CFLAGS([f], '''
 '''):
             if not 'WERROR_CFLAGS' in conf.env: