Added --enable-Werror option to our configure script

svn-id: r20792
This commit is contained in:
Max Horn 2006-02-20 15:46:10 +00:00
parent a24867339d
commit d87e5d6094
2 changed files with 4 additions and 3 deletions

View File

@ -18,9 +18,6 @@ MODULE_DIRS :=
# Load the make rules generated by configure
include config.mak
# Uncomment this for stricter compile time code verification
# CXXFLAGS+= -Werror
CXXFLAGS:= -Wall $(CXXFLAGS)
CXXFLAGS+= -O -Wuninitialized
CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas

4
configure vendored
View File

@ -291,6 +291,7 @@ Special configuration feature:
Optional Features:
--disable-debug disable building with debugging symbols
--enable-Werror treat warnings as errors
--disable-scumm don't build the SCUMM engine
--disable-scumm-7-8 exclude v7 and v8 game in SCUMM engine (ft, dig, comi and demos)
--disable-he exclude HE70+ games in SCUMM engine
@ -444,6 +445,9 @@ for ac_option in $@; do
--disable-debug)
DEBFLAGS=""
;;
--enable-Werror)
CXXFLAGS="$CXXFLAGS -Werror"
;;
--enable-release)
DEBFLAGS="-O2"
;;