svn commit: samba r2047 - branches/SAMBA_4_0/source/build/smb_build

abartlet at samba.org abartlet at samba.org
Wed Aug 25 05:58:33 GMT 2004


Author: abartlet
Date: 2004-08-25 05:58:33 +0000 (Wed, 25 Aug 2004)
New Revision: 2047

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2047&nolog=1

Log:
Warn on 'declaration after statement' (breaks non-gcc).

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/build/smb_build/check_path.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/check_path.m4
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/check_path.m4	2004-08-25 04:16:48 UTC (rev 2046)
+++ branches/SAMBA_4_0/source/build/smb_build/check_path.m4	2004-08-25 05:58:33 UTC (rev 2047)
@@ -129,7 +129,7 @@
 	debug=yes
 	CFLAGS="${CFLAGS} -g -Wall"
         developer=yes
-    	DEVELOPER_CFLAGS="-Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
+    	DEVELOPER_CFLAGS="-Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wdeclaration-after-statement -DDEBUG_PASSWORD -DDEVELOPER"
     fi])
 
 AC_ARG_ENABLE(krb5developer, [  --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)],
@@ -137,7 +137,7 @@
 	debug=yes
 	CFLAGS="${CFLAGS} -g -Wall"
         developer=yes
-	DEVELOPER_CFLAGS="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
+	DEVELOPER_CFLAGS="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings  -Wdeclaration-after-statement -DDEBUG_PASSWORD -DDEVELOPER"
     fi])
 
 AC_ARG_ENABLE(gtkdeveloper, [  --enable-gtkdeveloper  Turn on developer warnings and debugging, except -Wstrict-prototypes and -Wshadow (default=no)],
@@ -145,7 +145,7 @@
 	debug=yes
 	CFLAGS="${CFLAGS} -g -Wall"
         developer=yes
-	DEVELOPER_CFLAGS="-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
+	DEVELOPER_CFLAGS="-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings  -Wdeclaration-after-statement -DDEBUG_PASSWORD -DDEVELOPER"
     fi])
 
 experimental=no



More information about the samba-cvs mailing list