]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Synch compiler flags with those in valgrind's Makefile.all.am.
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 1 Jan 2015 18:38:15 +0000 (18:38 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 1 Jan 2015 18:38:15 +0000 (18:38 +0000)
Add -std=gnu99.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3051

VEX/Makefile-gcc

index c29d1520a19988fbe86ab882d78623fa0fa926c6..eaeb8f55f5039db76f932836deb39d101b379679 100644 (file)
@@ -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