summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-04-02 14:43:47 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-04-02 14:43:47 (GMT)
commitf9404bf68a067b06986cd85855c43795ec578dbd (patch)
tree57f481aced2c69ddf6ac9766f310be86ebe03f6f /src/gui/panels
parentd69503d7aeceddc52dfee9481e6a0e8ba9c1fc85 (diff)
Removed lots of uninitialized uses, mostly in NDEBUG mode.
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/errors.c16
-rw-r--r--src/gui/panels/symbols.c5
2 files changed, 21 insertions, 0 deletions
diff --git a/src/gui/panels/errors.c b/src/gui/panels/errors.c
index afe0283..b4be9ad 100644
--- a/src/gui/panels/errors.c
+++ b/src/gui/panels/errors.c
@@ -562,6 +562,17 @@ static void update_error_panel(const GErrorPanel *panel, GtkStatusStack *status,
}
+ else
+ {
+ /* Pour GCC... */
+ format = NULL;
+ proc = NULL;
+
+ fcount = 0;
+ pcount = 0;
+
+ }
+
/* S'il n'y a aucun soucis à remonter... */
if (panel->binary == NULL || (fcount + pcount) == 0)
@@ -1026,6 +1037,11 @@ static const char *g_error_panel_setup(const GErrorPanel *panel, unsigned int ui
break;
+ default: /* Pour GCC... */
+ assert(false);
+ result = "";
+ break;
+
}
return result;
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index d1e60fc..f016199 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -1550,6 +1550,11 @@ static const char *g_symbols_panel_setup(const GSymbolsPanel *panel, unsigned in
break;
+ default: /* Pour GCC... */
+ assert(false);
+ result = "";
+ break;
+
}
/* Mémorisation de tous les noeuds ouverts */