diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-08-06 22:55:33 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-08-06 22:55:33 (GMT) |
commit | ae2be2044d39abebfa7b8d5ce64571e72f7ff6fd (patch) | |
tree | 71b2a2bc85ec23100c9d584bcd7409080418af53 /src/gui/panels/symbols.c | |
parent | b070fb755b9e32bfa80e8854606f431d285ca23e (diff) |
Removed some compilation warnings.
Diffstat (limited to 'src/gui/panels/symbols.c')
-rw-r--r-- | src/gui/panels/symbols.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c index 385bfad..8168313 100644 --- a/src/gui/panels/symbols.c +++ b/src/gui/panels/symbols.c @@ -1520,7 +1520,9 @@ static const char *g_symbols_panel_setup(const GSymbolsPanel *panel, unsigned in { const char *result; /* Message à retourner */ GBinFormat *format; /* Format du binaire */ +#ifndef NDEBUG int ret; /* Bilan de mise en place */ +#endif GtkBuilder *builder; /* Constructeur utilisé */ GtkTreeView *treeview; /* Arborescence graphique */ @@ -1564,8 +1566,12 @@ static const char *g_symbols_panel_setup(const GSymbolsPanel *panel, unsigned in { (*data)->filter = (regex_t *)malloc(sizeof(regex_t)); +#ifndef NDEBUG ret = regcomp((*data)->filter, G_PANEL_ITEM(panel)->filter, REG_EXTENDED | REG_ICASE); assert(ret == 0); +#else + regcomp((*data)->filter, G_PANEL_ITEM(panel)->filter, REG_EXTENDED | REG_ICASE); +#endif } |