Andrew Talbot : msvcrt/tests: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 12 08:42:08 CST 2006


Module: wine
Branch: master
Commit: 24c4f46da47125adf410cbec2d5fae7477cb163f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=24c4f46da47125adf410cbec2d5fae7477cb163f

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Mon Dec 11 21:41:00 2006 +0000

msvcrt/tests: Cast-qual warnings fix.

---

 dlls/msvcrt/tests/cpp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/msvcrt/tests/cpp.c b/dlls/msvcrt/tests/cpp.c
index 5909aae..a411212 100644
--- a/dlls/msvcrt/tests/cpp.c
+++ b/dlls/msvcrt/tests/cpp.c
@@ -140,7 +140,7 @@ inline static void* do_call_func1(void *
   return (void*)retval;
 }
 
-inline static void* do_call_func2(void *func, void *_this, void* arg)
+inline static void* do_call_func2(void *func, void *_this, const void* arg)
 {
   volatile void* retval = 0;
   __asm
@@ -164,7 +164,7 @@ static void* do_call_func1(void *func, v
                         : "memory" );
   return ret;
 }
-static void* do_call_func2(void *func, void *_this, void* arg)
+static void* do_call_func2(void *func, void *_this, const void* arg)
 {
   void* ret;
   __asm__ __volatile__ ("pushl %2\n\tcall *%1"
@@ -176,7 +176,7 @@ static void* do_call_func2(void *func, v
 #endif
 
 #define call_func1(x,y)   do_call_func1((void*)x,(void*)y)
-#define call_func2(x,y,z) do_call_func2((void*)x,(void*)y,(void*)z)
+#define call_func2(x,y,z) do_call_func2((void*)x,(void*)y,(const void*)z)
 
 /* Some exports are only available in later versions */
 #define SETNOFAIL(x,y) x = (void*)GetProcAddress(hMsvcrt,y)




More information about the wine-cvs mailing list