Author: njn Date: 2007-11-11 21:12:28 +0000 (Sun, 11 Nov 2007) New Revision: 7148
Log: Add some seemingly unnecessary initialisations to shut GCC 4.0.2 up. Modified: trunk/helgrind/hg_main.c Modified: trunk/helgrind/hg_main.c =================================================================== --- trunk/helgrind/hg_main.c 2007-11-11 18:56:39 UTC (rev 7147) +++ trunk/helgrind/hg_main.c 2007-11-11 21:12:28 UTC (rev 7148) @@ -2686,7 +2686,7 @@ 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 @@ Addr ga; SecMap* sm; SecMapIter itr; - UInt* w32p; + UInt* w32p = NULL; HG_(initIterFM)( map_shmem ); while (HG_(nextIterFM)( map_shmem, @@ -5668,7 +5668,7 @@ 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Valgrind-developers mailing list Valgrind-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-developers