Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18414/sql/src/server

Modified Files:
        Makefile.ag 
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: Makefile.ag
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/Makefile.ag,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- Makefile.ag 1 Apr 2007 22:08:56 -0000       1.67
+++ Makefile.ag 23 Aug 2007 13:40:17 -0000      1.68
@@ -21,6 +21,13 @@
 
 YFLAGS = -d -p sql -v
 
+#  Some versions of flex & bison seem to generate code
+#  that does not compile with `gcc -Wundef`;
+#  we use GCC_BISON_CFLAGS to disable the respective warning as
+#  locally as possible via "-Wno-undef"
+#  (see also MonetDB4/src/monet/Makefile.ag, buildtools/conf/monet.m4,
+#  pathfinder/modules/pftijah/Makefile.ag, amdb/src/lang/Makefile.ag).
+#
 #  (At least on Fedora Core 4,) bison 2.0 seems to generate code
 #  that icc does not like; since the problem only occurs with
 #  sql/src/server/sql_parser.mx & amdb/src/lang/parser.y,
@@ -28,7 +35,7 @@
 #  to disable the respective warning as locally as possible
 #  via "-wd592" (#592: variable "." is used before its value is set)
 #  (see also MonetDB/conf/monet.m4 & amdb/src/lang/Makefile.ag).
-CFLAGS = $(ICC_BISON_CFLAGS)
+CFLAGS = $(ICC_BISON_CFLAGS) $(GCC_BISON_CFLAGS)
 
 lib_sqlserver = {
        NOINST


-------------------------------------------------------------------------
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-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to