[svn] commit: r373 - /branches/jinmei-dnsmessageapi/configure.ac

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Dec 16 07:40:41 UTC 2009


Author: jinmei
Date: Wed Dec 16 07:40:41 2009
New Revision: 373

Log:
use stricter compiler warnings

Modified:
    branches/jinmei-dnsmessageapi/configure.ac

Modified: branches/jinmei-dnsmessageapi/configure.ac
==============================================================================
--- branches/jinmei-dnsmessageapi/configure.ac (original)
+++ branches/jinmei-dnsmessageapi/configure.ac Wed Dec 16 07:40:41 2009
@@ -10,6 +10,7 @@
 # Checks for programs.
 AC_PROG_CXX
 AC_PROG_CC
+AM_CONDITIONAL(GCC, test "$GCC" = yes)
 AC_PROG_RANLIB
 
 AC_PROG_LIBTOOL
@@ -21,6 +22,12 @@
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDBOOL
 AC_TYPE_SIZE_T
+
+# default compiler warning settings
+if test "X$GCC" = "Xyes"; then
+CXXFLAGS="-Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare"
+fi
+AC_SUBST(CXXFLAGS)
 
 #
 # Check availablity of gtest, which will be used for unit tests.




More information about the bind10-changes mailing list