From 2d203cc71317fd86d7a0e6ea038b9fbda1db2820 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Sun, 4 Oct 2015 22:32:05 +0200 Subject: [PATCH] Fix compiler warnings --- core/ctk/ctk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/ctk/ctk.c b/core/ctk/ctk.c index 5da963b19..b3c1198f9 100644 --- a/core/ctk/ctk.c +++ b/core/ctk/ctk.c @@ -852,7 +852,9 @@ add_redrawwidget(struct ctk_widget *w) static void widget_redraw(struct ctk_widget *widget) { +#if CTK_CONF_WINDOWS struct ctk_window *window; +#endif /* CTK_CONF_WINDOWS */ if(mode != CTK_MODE_NORMAL || widget == NULL) { return; @@ -870,8 +872,8 @@ widget_redraw(struct ctk_widget *widget) if(menus.open == NULL) #endif /* CTK_CONF_MENUS */ { - window = widget->window; #if CTK_CONF_WINDOWS + window = widget->window; if(window == dialog) { ctk_draw_widget(widget, CTK_FOCUS_DIALOG, 0, height); } else if(dialog == NULL &&