From b162ccca039812a2b6ef99844db165187d25c963 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 26 Jan 2009 18:57:00 +0000 Subject: [PATCH] suppress warning about unused win pointer when wxUSE_GRAPHICS_CONTEXT==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/renderer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index 177fb31036..86855f31d5 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -157,6 +157,11 @@ static GdkWindow* wxGetGdkWindowForDC(wxWindow* win, wxDC& dc) gdk_window = dc.GetGDKWindow(); #endif } + +#if !wxUSE_GRAPHICS_CONTEXT + wxUnusedVar(win); +#endif + return gdk_window; }