[patch][gui] Makefile.am -Werror

Andreas Tobler toa@pop.agri.ch
Fri Oct 22 20:44:00 GMT 2004


Hi all,

if my warning patrol succeeds, I'd like to propose the following patch:

Andreas

2004-10-22  Andreas Tobler  <a.tobler@schweiz.ch>

	* Makefile.am (WARNINGS): Replace -W with -Wextra, more speaking.
	(PEDANTIC_CFLAGS): Add -Werror.
	* Makefile.in: Regenerate.


Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.361.2.51
diff -u -r1.361.2.51 Makefile.am
--- Makefile.am 21 Oct 2004 11:24:43 -0000      1.361.2.51
+++ Makefile.am 22 Oct 2004 20:42:27 -0000
@@ -105,7 +105,7 @@

  GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@

-WARNINGS = -W -Wall
+WARNINGS = -Wextra -Wall
  ## We need _GNU_SOURCE defined for some Linux builds.  It doesn't hurt
  ## to always define it.
  AM_CXXFLAGS = -fno-rtti -fnon-call-exceptions $(THREADCXXFLAGS) \
@@ -124,7 +124,7 @@
  endif

  ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
-PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
+PEDANTIC_CFLAGS = -Werror -ansi -pedantic -Wall -Wno-long-long

  JCFLAGS = -g
  JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)



More information about the Java-patches mailing list