Remove -Winline from builds with strict warnings; we can't do anything about

the "inlining failed in call to <...>: call is unlikely and code size would grow" warnings, and they're abscuring legitimate problems.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3508 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2010-01-23 20:13:26 +00:00
parent 0b847e188e
commit 12d6b02bd4
+6 -3
View File
@@ -157,7 +157,7 @@ uqm_prepare_config()
-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 \
-Winline -Wuninitialized" -Wuninitialized"
# 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"
@@ -171,8 +171,11 @@ uqm_prepare_config()
# on ourselves. # on ourselves.
# CFLAGS="$CFLAGS -pedantic-errors -ansi -trigraphs" # ANSI # CFLAGS="$CFLAGS -pedantic-errors -ansi -trigraphs" # ANSI
# CFLAGS="$CFLAGS -Wnested-externs" # CFLAGS="$CFLAGS -Wnested-externs"
# We know they're in the code, and though we'd like to get # We know they're in the code, and though we'd like to
# rid of them, they're not bugs. # get rid of them, they're not bugs.
# CFLAGS="$CFLAGS -Winline"
# This gives too many warnings which we can do nothing
# about, obscuring legitimate warnings.
CFLAGS=`echo $CFLAGS` CFLAGS=`echo $CFLAGS`
# Remove all the unnecessary spaces from $CFLAGS, # Remove all the unnecessary spaces from $CFLAGS,
# for more readable messages. # for more readable messages.