]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
shut GCC up
authorNicholas Nethercote <njn@valgrind.org>
Tue, 20 Nov 2007 07:04:36 +0000 (07:04 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 20 Nov 2007 07:04:36 +0000 (07:04 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7189

coregrind/m_libcbase.c

index 6331a7a657838c202b0387caef6636066b1c2745..280efedff85d78d9ee6639003ea1f98c005bf65a 100644 (file)
@@ -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++;