diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-10-11 22:47:29 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-10-11 22:47:29 +0000 |
commit | 12ac84757c30541a175a5f687226a7e5bfebe10f (patch) | |
tree | 1de4fa1ac5f0605dd7a276bbf51eea7cc615bbf6 /macros/compiler-flags.m4 | |
parent | 6508a164f7cc669495627635a8e3ee62736de648 (diff) | |
download | shared-mime-info-12ac84757c30541a175a5f687226a7e5bfebe10f.tar.gz |
Now it should also work when building packages.
svn path=/trunk/; revision=437
Diffstat (limited to 'macros/compiler-flags.m4')
-rw-r--r-- | macros/compiler-flags.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/compiler-flags.m4 b/macros/compiler-flags.m4 index c6cd1a6c..1a5cd8c6 100644 --- a/macros/compiler-flags.m4 +++ b/macros/compiler-flags.m4 @@ -11,13 +11,13 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[ if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; - *) warnCFLAGS="-Wall" ;; + *) warnCFLAGS="-Wall -Wno-unused" ;; esac ## -W is not all that useful. And it cannot be controlled ## with individual -Wno-xxx flags, unlike -Wall if test "x$enable_compile_warnings" = "xyes"; then - warnCFLAGS="$warnCFLAGS -Wno-unused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith" + warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith" fi fi fi |