From: Julian Seward Date: Fri, 16 Nov 2007 12:31:27 +0000 (+0000) Subject: Avoid hundreds of warnings from -Winline on gcc-4.3: X-Git-Tag: svn/VALGRIND_3_3_0~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf9f8178677b7c004c08756ab6d465b91c3947a;p=thirdparty%2Fvalgrind.git Avoid hundreds of warnings from -Winline on gcc-4.3: In dump.c, gcc complains that 'param max-stack-frame-growth' would be exceeded, so remove 'inline' spec. All other warnings are of the form 'call is unlikely and code size would grow'. These aren't interesting. Remove -Winline. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7164 --- diff --git a/Makefile.flags.am b/Makefile.flags.am index e91e9a65ea..1dad49add5 100644 --- a/Makefile.flags.am +++ b/Makefile.flags.am @@ -1,7 +1,7 @@ # Baseline flags for all compilations. Aim here is to maximise # performance and get whatever useful warnings we can out of gcc. -AM_CFLAGS_BASE = -O2 -g -Wmissing-prototypes -Winline -Wall -Wshadow \ +AM_CFLAGS_BASE = -O2 -g -Wmissing-prototypes -Wall -Wshadow \ -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations \ -fno-strict-aliasing diff --git a/callgrind/dump.c b/callgrind/dump.c index 2a0442a0ea..3bfc754317 100644 --- a/callgrind/dump.c +++ b/callgrind/dump.c @@ -434,7 +434,7 @@ void init_debug_cache(void) } } -static __inline__ +static /* __inline__ */ Bool get_debug_pos(BBCC* bbcc, Addr addr, AddrPos* p) { Char file[FILENAME_LEN];