[glib] ghash: Suppress -Wmaybe-uninitialized from GCC 4.4
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] ghash: Suppress -Wmaybe-uninitialized from GCC 4.4
- Date: Tue, 2 Apr 2013 18:15:08 +0000 (UTC)
commit e359130e3ec840b72628253d0bde44144225fa1a
Author: Colin Walters <walters verbum org>
Date: Tue Apr 2 14:10:15 2013 -0400
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 <otte gnome org>
glib/ghash.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]