]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid hundreds of warnings from -Winline on gcc-4.3:
authorJulian Seward <jseward@acm.org>
Fri, 16 Nov 2007 12:31:27 +0000 (12:31 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 16 Nov 2007 12:31:27 +0000 (12:31 +0000)
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

Makefile.flags.am
callgrind/dump.c

index e91e9a65ead833a779447dcce3bac6fc39cd14d5..1dad49add5d87b08c50a853fafb09f851642ae23 100644 (file)
@@ -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
 
index 2a0442a0eae56d8ac00796dbc3d88d59dd432b73..3bfc754317030056420216c0d3802ecb1df1575c 100644 (file)
@@ -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];