]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add more gcc paranoia flags in Makefile, and fix a resulting warning.
authorJulian Seward <jseward@acm.org>
Fri, 21 Jan 2005 21:23:07 +0000 (21:23 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 21 Jan 2005 21:23:07 +0000 (21:23 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@736

VEX/Makefile
VEX/priv/ir/iropt.c

index 25ef33f897413929b75b5cae3c7e7a3a7bd4d8d7..e9c063b344b1954e0e418b686b4ec1e833aedbba 100644 (file)
@@ -49,7 +49,10 @@ PRIV_INCLUDES = -Ipriv
 
 
 CC = gcc
-CCFLAGS = -g -O -Wall -Wmissing-prototypes -Wshadow -Winline $(EXTRA_CFLAGS)
+CCFLAGS = -g -O -Wall -Wmissing-prototypes -Wshadow -Winline \
+               -Wpointer-arith -Wbad-function-cast -Wcast-qual \
+               -Wcast-align -Wmissing-declarations -Wmissing-format-attribute \
+               $(EXTRA_CFLAGS)
 
 #CC = icc
 #CCFLAGS = -g  -Wbrief -Wall -wd981 -wd279 -wd1287 -wd869 \
index bb0b8d0751f9168e9e4b676d4bb37a6774e7d736..4d83fec0b4a4566b0eb7a9aacfb0fb5973f67a07 100644 (file)
@@ -559,7 +559,7 @@ static void redundant_get_removal_BB ( IRBB* bb )
                are now associated.  So add a binding to reflect that
                fact. */
             addToHHW( env, (HWord)key, 
-                           (HWord)(IRExpr_Tmp(st->Ist.Tmp.tmp)) );
+                           (HWord)(void*)(IRExpr_Tmp(st->Ist.Tmp.tmp)) );
          }
       }