kernel32: fix compiler warnings for 64-bit

Austin English austinenglish at gmail.com
Sun Feb 22 16:20:51 CST 2009


args is unused on non-i386/sparc, as are the load_message functions.

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/format_msg.c b/dlls/kernel32/format_msg.c
index 41a2317..9f2aa81 100644
--- a/dlls/kernel32/format_msg.c
+++ b/dlls/kernel32/format_msg.c
@@ -64,6 +64,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(resource);
 static const WCHAR PCNTFMTWSTR[] = { '%','%','%','s',0 };
 static const WCHAR FMTWSTR[] = { '%','s',0 };
 
+#if defined(__i386__) || defined(__sparc__)
 /**********************************************************************
  *	load_messageW		(internal)
  */
@@ -122,6 +123,7 @@ static LPSTR load_messageA( HMODULE module, UINT id, WORD lang )
     TRACE("returning %s\n", wine_dbgstr_a(buffer));
     return buffer;
 }
+#endif /* __i386__ */
 
 
 /***********************************************************************
@@ -137,10 +139,10 @@ DWORD WINAPI FormatMessageA(
 	DWORD	nSize,
 	__ms_va_list* _args )
 {
-    LPDWORD args=(LPDWORD)_args;
     DWORD ret = 0;
 #if defined(__i386__) || defined(__sparc__)
 /* This implementation is completely dependent on the format of the va_list on x86 CPUs */
+    LPDWORD args=(LPDWORD)_args;
     LPSTR	target,t;
     DWORD	talloced;
     LPSTR	from,f;
@@ -358,9 +360,9 @@ DWORD WINAPI FormatMessageW(
 	DWORD	nSize,
 	__ms_va_list* _args )
 {
-    LPDWORD args=(LPDWORD)_args;
 #if defined(__i386__) || defined(__sparc__)
 /* This implementation is completely dependent on the format of the va_list on x86 CPUs */
+    LPDWORD args=(LPDWORD)_args;
     LPWSTR target,t;
     DWORD talloced;
     LPWSTR from,f;


More information about the wine-patches mailing list