From 7136c7900731de76158e2c00ad3d38c21cec8cf0 Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Thu, 1 Jan 2015 18:38:15 +0000 Subject: [PATCH] Synch compiler flags with those in valgrind's Makefile.all.am. Add -std=gnu99. git-svn-id: svn://svn.valgrind.org/vex/trunk@3051 --- VEX/Makefile-gcc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/VEX/Makefile-gcc b/VEX/Makefile-gcc index c29d1520a1..eaeb8f55f5 100644 --- a/VEX/Makefile-gcc +++ b/VEX/Makefile-gcc @@ -101,13 +101,12 @@ endif # Put -g -O2 after any flags we inherit from V. -O2 vs -O # makes a significant difference, at least with gcc4. -CCFLAGS = -Wall -Wmissing-prototypes -Wshadow \ +CCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow \ -Wpointer-arith -Wbad-function-cast -Wcast-qual \ -Wcast-align -Wmissing-declarations \ - -Wno-pointer-sign \ - $(EXTRA_CFLAGS) -g -O2 -fstrict-aliasing \ - \ - -O + -Wwrite-strings -Wformat -Wformat-security \ + -std=gnu99 \ + $(EXTRA_CFLAGS) -g -O2 -fstrict-aliasing #CC = icc #CCFLAGS = -g -Wall -wd981 -wd279 -wd1287 -wd869 -wd111 -wd188 -wd186 -- 2.47.2