Added -Wdeclaration-after-statement to strict warnings build; removed -O1 not needed for gcc 4; from Scott A. Colcord
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3687 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -150,14 +150,17 @@ uqm_prepare_config()
|
|||||||
CFLAGS="$CFLAGS -g -O0 -DDEBUG -D_DEBUG"
|
CFLAGS="$CFLAGS -g -O0 -DDEBUG -D_DEBUG"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
CFLAGS="$CFLAGS -O1" # This is needed for -Wunitialized
|
CFLAGS="$CFLAGS -g -DDEBUG -W -Wall"
|
||||||
CFLAGS="$CFLAGS -g -DDEBUG -W -Wall \
|
# CFLAGS="$CFLAGS -O1"
|
||||||
-Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
|
# This is needed for -Wunitialized with gcc 3.4
|
||||||
|
CFLAGS="$CFLAGS -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
|
||||||
-Wstrict-prototypes -Wmissing-declarations \
|
-Wstrict-prototypes -Wmissing-declarations \
|
||||||
-Wwrite-strings -Wimplicit -Wreturn-type -Wformat \
|
-Wwrite-strings -Wimplicit -Wreturn-type -Wformat \
|
||||||
-Wswitch -Wcomment -Wchar-subscripts \
|
-Wswitch -Wcomment -Wchar-subscripts \
|
||||||
-Wparentheses -Wcast-align \
|
-Wparentheses -Wcast-align \
|
||||||
-Wuninitialized"
|
-Wuninitialized"
|
||||||
|
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
|
||||||
|
# Until we abandon MSVC 6
|
||||||
# CFLAGS="$CFLAGS -Waggregate-return"
|
# CFLAGS="$CFLAGS -Waggregate-return"
|
||||||
# It's not unreasonable to return structs at times.
|
# It's not unreasonable to return structs at times.
|
||||||
# CFLAGS="$CFLAGS "-Wpointer-arith"
|
# CFLAGS="$CFLAGS "-Wpointer-arith"
|
||||||
|
|||||||
Reference in New Issue
Block a user