From: Nicholas Nethercote Date: Sun, 11 Nov 2007 21:12:28 +0000 (+0000) Subject: Add some seemingly unnecessary initialisations to shut GCC 4.0.2 up. X-Git-Tag: svn/VALGRIND_3_3_0~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aed0f8ccebd81774c9c171568e1c48ca12c5b77c;p=thirdparty%2Fvalgrind.git Add some seemingly unnecessary initialisations to shut GCC 4.0.2 up. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7148 --- diff --git a/helgrind/hg_main.c b/helgrind/hg_main.c index 18f71e098a..dc02f3d26e 100644 --- a/helgrind/hg_main.c +++ b/helgrind/hg_main.c @@ -2686,7 +2686,7 @@ static void shmem__sanity_check ( Char* who ) while (HG_(nextIterFM)( map_shmem, (Word*)(HChar*)&smga, (Word*)(HChar*)&sm )) { SecMapIter itr; - UInt* w32p; + UInt* w32p = NULL; Bool mbHasShared = False; Bool allNoAccess = True; if (!is_sane_SecMap(sm)) BAD("1"); @@ -4998,7 +4998,7 @@ static void shadow_mem_make_NoAccess ( Thread* thr, Addr aIN, SizeT len ) Addr ga; SecMap* sm; SecMapIter itr; - UInt* w32p; + UInt* w32p = NULL; HG_(initIterFM)( map_shmem ); while (HG_(nextIterFM)( map_shmem, @@ -5668,7 +5668,7 @@ void evh__HG_PTHREAD_JOIN_POST ( ThreadId stay_tid, Thread* quit_thr ) while (HG_(nextIterFM)( map_shmem, (Word*)(HChar*)&ga, (Word*)(HChar*)&sm )) { SecMapIter itr; - UInt* w32p; + UInt* w32p = NULL; tl_assert(sm); stats_SMs++; /* Skip this SecMap if the summary bit indicates it is safe to