Update of /cvsroot/monetdb/buildtools/conf
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18414/buildtools/conf
Modified Files:
MonetDB.m4
Log Message:
When configured with --enable-strict, let gcc also complain about undefined
macros:
`gcc -Wundef`.
However, some bison generated code apparenly inherently contains/uses undefined
marcos;
hence, we locally overrule -Wundef by -Wno-undef in those cases.
Index: MonetDB.m4
===================================================================
RCS file: /cvsroot/monetdb/buildtools/conf/MonetDB.m4,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- MonetDB.m4 23 Aug 2007 12:37:49 -0000 1.29
+++ MonetDB.m4 23 Aug 2007 13:40:15 -0000 1.30
@@ -518,6 +518,7 @@
: ${X_CFLAGS=} # initialize to empty if not set
NO_X_CFLAGS='_NO_X_CFLAGS_'
NO_INLINE_CFLAGS=""
+GCC_BISON_CFLAGS=""
ICC_BISON_CFLAGS=""
CFLAGS_NO_OPT="-O0"
if test "x$enable_strict" = xyes; then
@@ -553,8 +554,15 @@
3.[[4-9]].*-*|[[4-9]].*-*)
X_CFLAGS="$X_CFLAGS -Wdeclaration-after-statement";;
esac
+ X_CFLAGS="$X_CFLAGS -Wundef"
+ dnl Some versions of flex & bison seem to generate code
+ dnl that does not compile with `gcc -Wundef`;
+ dnl we use GCC_BISON_CFLAGS to disable the respective warning as
+ dnl locally as possible via "-Wno-undef"
+ dnl (see also MonetDB4/src/monet/Makefile.ag,
sql/src/server/Makefile.ag,
+ dnl pathfinder/modules/pftijah/Makefile.ag,
amdb/src/lang/Makefile.ag).
+ GCC_BISON_CFLAGS="$GCC_BISON_CFLAGS -Wno-undef"
dnl Our code it not (yet?) up to these:
- dnl X_CFLAGS="$X_CFLAGS -Wundef"
dnl X_CFLAGS="$X_CFLAGS -Wshadow"
dnl X_CFLAGS="$X_CFLAGS -Wconversion"
dnl X_CFLAGS="$X_CFLAGS -Wstrict-prototypes"
@@ -1555,6 +1563,7 @@
fi
AC_SUBST(CFLAGS_NO_OPT)
AC_SUBST(NO_INLINE_CFLAGS)
+AC_SUBST(GCC_BISON_CFLAGS)
AC_SUBST(ICC_BISON_CFLAGS)
dnl --enable-warning (only gcc & icc/ecc)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins