Hi,
We would include the -pedantic flag to gcc in the default WARNINGS we
are using for most modules. But this seems to interfere with some of the
gdk/gtk+ standard headers. This moves pedantic to STRICT flags so people
can keep --enable-Werror on by default most of the time.
2006-09-24 Mark Wielaard <[EMAIL PROTECTED]>
* configure.ac: Move -pedantic from WARNING to STRICT flags.
Committed,
Mark
Index: configure.ac
===================================================================
RCS file: /cvsroot/classpath/classpath/configure.ac,v
retrieving revision 1.186
diff -u -r1.186 configure.ac
--- configure.ac 23 Sep 2006 01:45:30 -0000 1.186
+++ configure.ac 24 Sep 2006 20:07:04 -0000
@@ -423,17 +423,17 @@
dnl When using gcc we want warnings, lots of warnings :-)
if test "x${GCC}" = xyes; then
- dnl We want ISO C90 pedantic ansi, but with longlong (jlong) support
+ dnl We want ISO C90 ansi, but with longlong (jlong) support
dnl and modern POSIX and BSD C library functions/prototypes.
dnl Warning flags for (almost) everybody.
dnl Should probably be configurable
- WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
+ WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
AC_SUBST(WARNING_CFLAGS)
dnl Strict warning flags which not every module uses.
dnl Should probably be configurable.
- STRICT_WARNING_CFLAGS=-Wstrict-prototypes
+ STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
AC_SUBST(STRICT_WARNING_CFLAGS)
dnl Whether or not to add -Werror, also not used by all modueles.
@@ -939,4 +939,4 @@
cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
if test x$use_escher != xtrue; then
echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
-fi
\ No newline at end of file
+fi