This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to enable warning flags in the fastjar directory


This patch enables warning flags in the fastjar directory.  It acts a
lot happier if my warning fixes patch is installed. :-)
http://gcc.gnu.org/ml/gcc-patches/2000-12/msg00676.html

Tested by configuring/compiling fastjar with and without gcc on
solaris2.7.

Okay to install?

		Thanks,
		--Kaveh


2000-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* configure.in (fastjar_warn_cflags): Set when using gcc.

	* Makefile.am (AM_CFLAGS): Set to @fastjar_warn_cflags@.

diff -rup orig/egcs-CVS20001213/fastjar/configure.in egcs-CVS20001213/fastjar/configure.in
--- orig/egcs-CVS20001213/fastjar/configure.in	Fri Dec  8 22:08:23 2000
+++ egcs-CVS20001213/fastjar/configure.in	Thu Dec 14 11:37:54 2000
@@ -11,6 +11,12 @@ AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin
 AC_PATH_PROG(STRIP, strip, /usr/bin/strip, $PATH:/bin:/usr/bin:/usr/local/bin)
 AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/local/bin)
 
+dnl Add warning flags if we are using gcc.
+if test "$GCC" = yes; then
+  fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
+fi
+AC_SUBST(fastjar_warn_cflags)
+
 dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
diff -rup orig/egcs-CVS20001213/fastjar/Makefile.am egcs-CVS20001213/fastjar/Makefile.am
--- orig/egcs-CVS20001213/fastjar/Makefile.am	Fri Dec  8 22:08:22 2000
+++ egcs-CVS20001213/fastjar/Makefile.am	Thu Dec 14 11:37:57 2000
@@ -48,3 +48,4 @@ grepjar_SOURCES = jargrep.c dostime.c co
 grepjar_LDADD = $(ZLIBS)
 grepjar_DEPENDENCIES = $(ZDEPS)
 
+AM_CFLAGS = @fastjar_warn_cflags@

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]