Alexandre Julliard : tests: Build all tests with strict prototypes.
Alexandre Julliard
julliard at winehq.org
Tue Oct 6 10:35:51 CDT 2009
Module: wine
Branch: master
Commit: 239265fd8b83b7047c85138a014d34b8f2f2ebbb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=239265fd8b83b7047c85138a014d34b8f2f2ebbb
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 6 13:34:37 2009 +0200
tests: Build all tests with strict prototypes.
---
dlls/Maketest.rules.in | 2 +-
dlls/user32/tests/class.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/Maketest.rules.in b/dlls/Maketest.rules.in
index aff002c..95f5c2b 100644
--- a/dlls/Maketest.rules.in
+++ b/dlls/Maketest.rules.in
@@ -10,7 +10,7 @@
#
DLLFLAGS = @DLLFLAGS@
-DEFS = $(EXTRADEFS)
+DEFS = -DWINE_STRICT_PROTOTYPES $(EXTRADEFS)
MODULE = $(TESTDLL:%.dll=%)_test.exe
TESTRESULTS = $(CTESTS:.c=.ok)
diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index f8a4cd8..0e7b0e4 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -598,8 +598,8 @@ static void test_builtinproc(void)
HWND hwnd;
int i;
- pDefWindowProcA = GetProcAddress(GetModuleHandle("user32.dll"), "DefWindowProcA");
- pDefWindowProcW = GetProcAddress(GetModuleHandle("user32.dll"), "DefWindowProcW");
+ pDefWindowProcA = (void *)GetProcAddress(GetModuleHandle("user32.dll"), "DefWindowProcA");
+ pDefWindowProcW = (void *)GetProcAddress(GetModuleHandle("user32.dll"), "DefWindowProcW");
for (i = 0; i < 4; i++)
{
More information about the wine-cvs
mailing list