mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-27 18:10:03 +01:00
silence some false-alarm uninitialised warnings
This commit is contained in:
parent
6f33038397
commit
5620f96305
@ -1550,6 +1550,10 @@ number_get_value (AST *ast,
|
|||||||
ast_set_error (ast, error, NULL, "number too big for any type");
|
ast_set_error (ast, error, NULL, "number too big for any type");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* silence uninitialised warnings... */
|
||||||
|
negative = FALSE;
|
||||||
|
abs_val = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1568,6 +1572,9 @@ number_get_value (AST *ast,
|
|||||||
|
|
||||||
if (abs_val == 0)
|
if (abs_val == 0)
|
||||||
negative = FALSE;
|
negative = FALSE;
|
||||||
|
|
||||||
|
/* silence uninitialised warning... */
|
||||||
|
dbl_val = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*end != '\0')
|
if (*end != '\0')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user