From 12d6b02bd43c13d7ecbb911d9f3bab6f8c656c0e Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Sat, 23 Jan 2010 20:13:26 +0000 Subject: [PATCH] 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 --- sc2/build/unix/build.config | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sc2/build/unix/build.config b/sc2/build/unix/build.config index ce2d077ee..aaf65834c 100644 --- a/sc2/build/unix/build.config +++ b/sc2/build/unix/build.config @@ -157,7 +157,7 @@ uqm_prepare_config() -Wwrite-strings -Wimplicit -Wreturn-type -Wformat \ -Wswitch -Wcomment -Wchar-subscripts \ -Wparentheses -Wcast-align \ - -Winline -Wuninitialized" + -Wuninitialized" # CFLAGS="$CFLAGS -Waggregate-return" # It's not unreasonable to return structs at times. # CFLAGS="$CFLAGS "-Wpointer-arith" @@ -171,8 +171,11 @@ uqm_prepare_config() # on ourselves. # CFLAGS="$CFLAGS -pedantic-errors -ansi -trigraphs" # ANSI # CFLAGS="$CFLAGS -Wnested-externs" - # We know they're in the code, and though we'd like to get - # rid of them, they're not bugs. + # We know they're in the code, and though we'd like to + # 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` # Remove all the unnecessary spaces from $CFLAGS, # for more readable messages.