mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Initialize a variable
Compilers get confused when variables are initialized by a function by taking them as reference in an out argument; this, coupled with the fact that C does not initialize variables by default, most commonly results in a "maybe uninitialized" compiler warning.
This commit is contained in:
parent
8423e59e95
commit
f011be9c4b
@ -1860,7 +1860,7 @@ test_strinfo (void)
|
|||||||
"\0\0\0\xff";
|
"\0\0\0\xff";
|
||||||
const guint32 *strinfo = (guint32 *) array;
|
const guint32 *strinfo = (guint32 *) array;
|
||||||
guint length = sizeof array / 4;
|
guint length = sizeof array / 4;
|
||||||
guint result;
|
guint result = 0;
|
||||||
|
|
||||||
{
|
{
|
||||||
/* build it and compare */
|
/* build it and compare */
|
||||||
|
Loading…
Reference in New Issue
Block a user