From: Julian Seward Date: Fri, 21 Jan 2005 21:23:07 +0000 (+0000) Subject: Add more gcc paranoia flags in Makefile, and fix a resulting warning. X-Git-Tag: svn/VALGRIND_3_0_1^2~598 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7bb1a8bcec1ad32fed45d674c4b0d0f20df8c3f;p=thirdparty%2Fvalgrind.git Add more gcc paranoia flags in Makefile, and fix a resulting warning. git-svn-id: svn://svn.valgrind.org/vex/trunk@736 --- diff --git a/VEX/Makefile b/VEX/Makefile index 25ef33f897..e9c063b344 100644 --- a/VEX/Makefile +++ b/VEX/Makefile @@ -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 \ diff --git a/VEX/priv/ir/iropt.c b/VEX/priv/ir/iropt.c index bb0b8d0751..4d83fec0b4 100644 --- a/VEX/priv/ir/iropt.c +++ b/VEX/priv/ir/iropt.c @@ -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)) ); } }