kernel32: fix a compiler warning on PowerPC

Austin English austinenglish at gmail.com
Sun Aug 30 14:44:52 CDT 2009


The relay channel is only used within patch_code_segment, which is
itself ifdef'ed i386.

Could also ifdef the relay declaration at the top of the file itself.
Let me know if that's preferred.

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/ne_module.c b/dlls/kernel32/ne_module.c
index 87a1a86..4a05cfb 100644
--- a/dlls/kernel32/ne_module.c
+++ b/dlls/kernel32/ne_module.c
@@ -44,7 +44,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(module);
 WINE_DECLARE_DEBUG_CHANNEL(loaddll);
-WINE_DECLARE_DEBUG_CHANNEL(relay);
 
 #include "pshpack1.h"
 typedef struct _GPHANDLERDEF
@@ -93,6 +92,7 @@ static HMODULE16 NE_GetModuleByFilename( LPCSTR name );
 static inline void patch_code_segment( NE_MODULE *pModule )
 {
 #ifdef __i386__
+    WINE_DECLARE_DEBUG_CHANNEL(relay);
     int i;
     CALLFROM16 *call;
     SEGTABLEENTRY *pSeg = NE_SEG_TABLE( pModule );


More information about the wine-patches mailing list