From: Nicholas Nethercote Date: Tue, 20 Nov 2007 07:04:36 +0000 (+0000) Subject: shut GCC up X-Git-Tag: svn/VALGRIND_3_3_0~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a72987b053907fac0034d7c7976b52ded48d7a35;p=thirdparty%2Fvalgrind.git shut GCC up git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7189 --- diff --git a/coregrind/m_libcbase.c b/coregrind/m_libcbase.c index 6331a7a657..280efedff8 100644 --- a/coregrind/m_libcbase.c +++ b/coregrind/m_libcbase.c @@ -81,7 +81,7 @@ static Bool is_base36_digit(Char c, Long* digit) Long VG_(strtoll8) ( Char* str, Char** endptr ) { Bool neg = False; - Long n = 0, digit; + Long n = 0, digit = 0; // Skip leading whitespace. while (VG_(isspace)(*str)) str++; @@ -103,7 +103,7 @@ Long VG_(strtoll8) ( Char* str, Char** endptr ) Long VG_(strtoll10) ( Char* str, Char** endptr ) { Bool neg = False; - Long n = 0, digit; + Long n = 0, digit = 0; // Skip leading whitespace. while (VG_(isspace)(*str)) str++; @@ -125,7 +125,7 @@ Long VG_(strtoll10) ( Char* str, Char** endptr ) Long VG_(strtoll16) ( Char* str, Char** endptr ) { Bool neg = False; - Long n = 0, digit; + Long n = 0, digit = 0; // Skip leading whitespace. while (VG_(isspace)(*str)) str++; @@ -155,7 +155,7 @@ Long VG_(strtoll16) ( Char* str, Char** endptr ) Long VG_(strtoll36) ( Char* str, Char** endptr ) { Bool neg = False; - Long n = 0, digit; + Long n = 0, digit = 0; // Skip leading whitespace. while (VG_(isspace)(*str)) str++;