mail[Wesnoth-commits] r24502 - in /trunk: changelog configure.ac


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on March 10, 2008 - 19:28:
Author: mordante
Date: Mon Mar 10 19:28:13 2008
New Revision: 24502

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24502&view=rev
Log:
Added -Werror -Wno-unused -Wno-sign-compare to the default compiler
flags, can be disabled with --disable-strict-compilation.

Modified:
    trunk/changelog
    trunk/configure.ac

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=24502&r1=24501&r2=24502&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Mon Mar 10 19:28:13 2008
@@ -44,6 +44,8 @@
      portraits)
    * allow configure to be started from directories other as the top dir
      (patch #1002)
+   * added -Werror -Wno-unused -Wno-sign-compare to the default compiler
+     flags, can be disabled with --disable-strict-compilation.
 
 Version 1.4:
  * language and i18n:

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/configure.ac?rev=24502&r1=24501&r2=24502&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Mon Mar 10 19:28:13 2008
@@ -89,6 +89,11 @@
              [profile=$enableval],
              [profile=no])
 
+AC_ARG_ENABLE([strict],
+             AS_HELP_STRING([--disable-strict-compilation], [disable the 
strict compilation rules (warnings are an error in the strict mode)]),
+             [strict=$enableval],
+             [strict=yes])
+
 if test "x$debug" = "xyes"
 then
        CXXFLAGS="$CXXFLAGS -O0 -DDEBUG -ggdb3 -W -Wall -ansi"
@@ -99,6 +104,11 @@
 if test "x$profile" = "xyes"
 then
        CXXFLAGS="$CXXFLAGS -pg"
+fi
+
+if test "x$strict" = "xyes"
+then
+       CXXFLAGS="$CXXFLAGS -Werror -Wno-unused -Wno-sign-compare"
 fi
 
 # Make tests default in svn version




Related Messages


Powered by MHonArc, Updated Mon Mar 10 20:42:15 2008