[Gnucash-changes] Detect GCC 4.0 or later and add
-Wdeclaration-after-statement
Neil Williams
codehelp at cvs.gnucash.org
Sat Oct 1 13:54:26 EDT 2005
Log Message:
-----------
Detect GCC 4.0 or later and add -Wdeclaration-after-statement
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash:
configure.in
Revision Data
-------------
Index: configure.in
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/configure.in,v
retrieving revision 1.359.2.63
retrieving revision 1.359.2.64
diff -Lconfigure.in -Lconfigure.in -u -r1.359.2.63 -r1.359.2.64
--- configure.in
+++ configure.in
@@ -1160,6 +1160,10 @@
if test `echo ${GCC_VERSION} | cut -d. -f2` -ge 4; then
# This is gcc >= 3.4.x
warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement"
+ else if test `echo ${GCC_VERSION} | cut -d. -f1` -ge 4; then
+ # This is gcc == 4.x.x
+ warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement"
+ fi
fi
fi
More information about the gnucash-changes
mailing list