Here is a copy of a patch for Japhar to get the compiler to produce
more warnings.  This should let you discover potential porability
problems.  I have not tested it on Classpath, as I am unable to
compile it right now.

Index: configure.in
===================================================================
RCS file: /gd/gnu/anoncvsroot/classpath/configure.in,v
retrieving revision 1.17
diff -u -w -u -r1.17 configure.in
--- configure.in        1998/11/01 04:32:46     1.17
+++ configure.in        1998/11/09 00:30:21
@@ -40,6 +40,38 @@
 dnl Initialize maintainer mode
 dnl AM_MAINTAINER_MODE

+# We want warnings, lots of warnings :-)
+if eval "test x$GCC = xyes"; then
+  JAPHAR_GREP_CFLAGS(-Wall, [
+    CFLAGS="$CFLAGS -Wall"
+  ])
+  JAPHAR_GREP_CFLAGS(-Wstrict-prototypes, [
+    CFLAGS="$CFLAGS -Wstrict-prototypes"
+  ])
+
+  JAPHAR_GREP_CFLAGS(-Wmissing-prototypes, [
+    CFLAGS="$CFLAGS -Wmissing-prototypes"
+  ])
+
+  JAPHAR_GREP_CFLAGS(-Wmissing-declarations, [
+    CFLAGS="$CFLAGS -Wmissing-declarations"
+  ])
+
+  JAPHAR_GREP_CFLAGS(-Wreturn-type, [
+    CFLAGS="$CFLAGS -Wreturn-type"                    +  ])
+
+  JAPHAR_GREP_CFLAGS(-Wcast-align, [
+    CFLAGS="$CFLAGS -Wcast-align"
+  ])
+
+  JAPHAR_GREP_CFLAGS(-pedantic, [
+    CFLAGS="$CFLAGS -pedantic"
+  ])
+
+  fi
+fi
+
 dnl threads packages (stolen from Japhar)
 threads=no
 
-- 
-- 
##>  Petter Reinholdtsen  <##  |  [EMAIL PROTECTED]

Reply via email to