This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch][gui] Makefile.am -Werror
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Fri, 22 Oct 2004 22:44:15 +0200
- Subject: [patch][gui] Makefile.am -Werror
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)