From a203628efbd5d76a77475c7734f44d1e443fb21d Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Mon, 7 Jul 2008 09:31:08 +0000 Subject: [PATCH] Pass -Wall -Wno-unused -Wno-sign-compare in all build variants. --- SConstruct | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index 5b23c0c74fc..cf152f35536 100644 --- a/SConstruct +++ b/SConstruct @@ -248,8 +248,9 @@ env.Replace(CPPDEFINES = ["HAVE_CONFIG_H"]) if env['static']: env.AppendUnique(LINKFLAGS = "-all-static") +env.AppendUnique(CXXFLAGS = Split("-W -Wall -Wno-unused -Wno-sign-compare -ansi")) if env['strict']: - env.AppendUnique(CXXFLAGS = Split("-W -Wall -Werror -Wno-unused -Wno-sign-compare")) + env.AppendUnique(CXXFLAGS = "-Werror") if env['gui'] == 'tiny': env.Append(CPPDEFINES = "USE_TINY_GUI") @@ -289,8 +290,8 @@ SConscript(dirs = Split("po doc packaging/windows")) binaries = Split("wesnoth wesnoth_editor wesnothd cutter exploder campaignd test") builds = { - "debug" : dict(CXXFLAGS = Split("-O0 -DDEBUG -ggdb3 -W -Wall -ansi")), - "release" : dict(CXXFLAGS = Split("-O2 -ansi -Wall")), + "debug" : dict(CXXFLAGS = Split("-O0 -DDEBUG -ggdb3")), + "release" : dict(CXXFLAGS = "-O2"), "profile" : dict(CXXFLAGS = "-pg", LINKFLAGS = "-pg") } build = env["build"]