summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-11-11 23:05:36 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-11-11 23:05:36 (GMT)
commit355a7140932b77d351bc6ddd965608b0011af855 (patch)
treef297872a2a33e0617d5fad0c85d00871f1482b06 /src/gtkext
parent0727204e36e919f06e80181482981c3f19669d76 (diff)
Fixed most of the warnings about use of uninitialized data.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@607 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/easygtk.c8
-rw-r--r--src/gtkext/gtkbufferview.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gtkext/easygtk.c b/src/gtkext/easygtk.c
index 5348265..d6a1c73 100644
--- a/src/gtkext/easygtk.c
+++ b/src/gtkext/easygtk.c
@@ -24,6 +24,9 @@
#include "easygtk.h"
+#include <assert.h>
+
+
#include "support.h"
@@ -467,9 +470,12 @@ static void _finish_button_with_img(GtkWidget *button, GObject *object, const ch
else if (picture != NULL)
gtk_container_add(GTK_CONTAINER(button), picture);
- else /*if (label != NULL)*/
+ else if (label != NULL)
gtk_container_add(GTK_CONTAINER(button), caption);
+ else
+ assert(0);
+
/* Interactions GTK... */
if (G_IS_OBJECT(object) && name != NULL)
diff --git a/src/gtkext/gtkbufferview.c b/src/gtkext/gtkbufferview.c
index 2884383..0d11de2 100644
--- a/src/gtkext/gtkbufferview.c
+++ b/src/gtkext/gtkbufferview.c
@@ -595,6 +595,8 @@ static gboolean gtk_buffer_view_query_tooltip(GtkWidget *widget, gint x, gint y,
if (g_binary_format_find_next_symbol_at(format, &addr, &next_sym))
stop_addr = get_mrange_addr(g_binary_symbol_get_range(next_sym));
+ else
+ stop_addr = NULL; /* Pour GCC */
g_generic_config_get_value(get_main_configuration(), MPK_TOOLTIP_SIZE, &count);