]> granicus.if.org Git - libjpeg-turbo/commitdiff
Enable full GCC compiler warnings by default
authorDRC <dcommander@users.sourceforge.net>
Sat, 26 Feb 2011 21:07:50 +0000 (21:07 +0000)
committerDRC <dcommander@users.sourceforge.net>
Sat, 26 Feb 2011 21:07:50 +0000 (21:07 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.1.x@460 632fc199-4ca6-4c93-a231-07263d6284db

configure.ac

index 78a391a2eb222ae736fcf6fab4ea99a7905ed68f..a9c997791662413fb7a1c18b8bf6e0a158c6a129 100644 (file)
@@ -13,6 +13,7 @@ AC_DEFINE([HAVE_PROTOTYPES], 1, [Define if your compiler supports prototypes])
 
 # Checks for programs.
 SAVED_CFLAGS=${CFLAGS}
+SAVED_CPPFLAGS=${CPPFLAGS}
 AC_PROG_CPP
 AC_PROG_CC
 AC_PROG_INSTALL
@@ -30,6 +31,9 @@ if test "x${GCC}" = "xyes"; then
   if test "x${SAVED_CFLAGS}" = "x"; then
     CFLAGS=-O3
   fi
+  if test "x${SAVED_CPPFLAGS}" = "x"; then
+    CPPFLAGS=-Wall
+  fi
 fi
 
 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])