From 08e01f35f747bfe30a40ea99cbcd63ad7fb94e7e Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 02:57:20 +0100 Subject: FIX GCC Warnings --- shell/shell.c | 10 +++++----- shell/stock.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'shell') diff --git a/shell/shell.c b/shell/shell.c index 166e7232..81f3e084 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -2369,19 +2369,19 @@ void key_get_components(const gchar *key, gchar *f = g_strdup(key); gchar *s = g_utf8_strchr(f+1, -1, '$'); if(s==NULL) { - DEBUG("key_get_components_ERROR NOT FOUND"); + DEBUG("ERROR NOT FOUND"); }else{ - if((s-f+1)>strlen(key)) { - DEBUG("key_get_components_ERROR NOT FOUND"); - }else{ + /* if((s-f+1)>strlen(key)) { + DEBUG("ERROR TOO LATE"); + }else{*/ *(g_utf8_strchr(f+1, -1, '$') + 1) = 0; if (flags) *flags = g_strdup(f); if (tag) *tag = key_mi_tag(f); g_free(f); + //} } - } } else np = key; diff --git a/shell/stock.c b/shell/stock.c index de5fc72c..27b2eedb 100644 --- a/shell/stock.c +++ b/shell/stock.c @@ -75,7 +75,7 @@ void stock_icon_register_pixbuf(GdkPixbuf * pixbuf, gchar * stock_id) void stock_icons_init(void) { - gint i; + guint i; guint n_stock_icons = G_N_ELEMENTS(stock_icons); DEBUG("initializing stock icons"); -- cgit v1.2.3