From b570b6fa9e85fd2d0881fb9ddb2b2e4d47156748 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 13 Nov 2013 16:20:32 +0100 Subject: Comment out unused variables to prevent warnings --- ui/gtk.c | 2 +- ui/librccui.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'ui') diff --git a/ui/gtk.c b/ui/gtk.c index 8a73d10..d35c513 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -152,7 +152,7 @@ int rccUiMenuConfigureWidget(rcc_ui_menu_context ctx) { GtkTreeIter iter; GtkAdjustment *adjustment; #else /* GTK_MAJOR_VERSION < 3 */ - GtkWidget *list; + GtkWidget *list = NULL; GtkObject *adjustment; #endif /* GTK_MAJOR_VERSION */ diff --git a/ui/librccui.c b/ui/librccui.c index 94c4ba0..c47e35d 100644 --- a/ui/librccui.c +++ b/ui/librccui.c @@ -602,14 +602,14 @@ int rccUiSetClassNames(rcc_ui_context ctx) { int rccUiRestoreLanguage(rcc_ui_context ctx) { unsigned int i; - rcc_context rccctx; - rcc_language_id language_id; +// rcc_context rccctx; +// rcc_language_id language_id; if (!ctx) return -1; - rccctx = ctx->rccctx; +// rccctx = ctx->rccctx; - language_id = (rcc_language_id)rccUiMenuGet(ctx->language); +// language_id = (rcc_language_id)rccUiMenuGet(ctx->language); rccUiMenuConfigureWidget(ctx->engine); //rccUiMenuSet(ctx->engine, (rcc_ui_id)rccConfigGetSelectedEngine(config)); @@ -788,14 +788,14 @@ rcc_ui_frame rccUiGetLanguageFrame(rcc_ui_context ctx, rcc_ui_language_frame_nam rcc_ui_frame rccUiGetCharsetsFrame(rcc_ui_context ctx, rcc_ui_charset_frame_name *name) { unsigned int i; const char *class_name; - rcc_context rccctx; +// rcc_context rccctx; rcc_ui_frame_context framectx; rcc_ui_frame frame; rcc_ui_box charset; if (!ctx) return NULL; - rccctx = ctx->rccctx; +// rccctx = ctx->rccctx; framectx = ctx->charset_frame; if (framectx->frame) return framectx->frame; -- cgit v1.2.3