From: Colin Walters Date: Tue, 2 Apr 2013 18:10:15 +0000 (-0400) Subject: ghash: Suppress -Wmaybe-uninitialized from GCC 4.4 X-Git-Tag: 2.37.0~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e359130e3ec840b72628253d0bde44144225fa1a;p=platform%2Fupstream%2Fglib.git ghash: Suppress -Wmaybe-uninitialized from GCC 4.4 It's not clever enough to figure out that these are always initialized in code paths that use them. Reviewed-By: Benjamin Otte --- diff --git a/glib/ghash.c b/glib/ghash.c index eb828bd..9150f32 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -841,8 +841,8 @@ g_hash_table_insert_node (GHashTable *hash_table, { gboolean already_exists; guint old_hash; - gpointer key_to_free; - gpointer value_to_free; + gpointer key_to_free = NULL; + gpointer value_to_free = NULL; old_hash = hash_table->hashes[node_index]; already_exists = HASH_IS_REAL (old_hash);