winex11.drv: Avoid unused variable warning when building without LIBGL.

Thomas Faber thomas.faber at reactos.org
Mon Feb 20 08:34:32 CST 2017


-------------- next part --------------
From eb9b01b18af4b370d0bdcf0cbfe9a641cbd883dc Mon Sep 17 00:00:00 2001
From: Thomas Faber <thomas.faber at reactos.org>
Date: Mon, 20 Feb 2017 15:28:25 +0100
Subject: winex11.drv: Avoid unused variable warning when building without
 LIBGL.

Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
---
 dlls/winex11.drv/opengl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index d89a19330f7..76cc3cc1820 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -43,10 +43,9 @@
 #include "wine/library.h"
 #include "wine/debug.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(wgl);
-
 #ifdef SONAME_LIBGL
 
+WINE_DEFAULT_DEBUG_CHANNEL(wgl);
 WINE_DECLARE_DEBUG_CHANNEL(winediag);
 
 #include "wine/wgl.h"
-- 
2.11.1.windows.1



More information about the wine-patches mailing list