Gerald Pfeifer : msvcrt/tests: Adjust CHECK_TYPE to avoid some two dozen compiler warnings.

Alexandre Julliard julliard at winehq.org
Tue May 25 12:06:08 CDT 2010


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Mon May 24 21:35:47 2010 +0200

msvcrt/tests: Adjust CHECK_TYPE to avoid some two dozen compiler warnings.

---

 dlls/msvcrt/tests/headers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/tests/headers.c b/dlls/msvcrt/tests/headers.c
index 80c614b..c39948d 100644
--- a/dlls/msvcrt/tests/headers.c
+++ b/dlls/msvcrt/tests/headers.c
@@ -68,7 +68,7 @@
 #define MSVCRT(x)    MSVCRT_##x
 #define OFFSET(T,F) ((unsigned int)((char *)&((struct T *)0L)->F - (char *)0L))
 #define CHECK_SIZE(e) ok(sizeof(e) == sizeof(MSVCRT(e)), "Element has different sizes\n")
-#define CHECK_TYPE(t) { TYPEOF(t) a = 0; TYPEOF(MSVCRT(t)) b = 0; a = b; CHECK_SIZE(t); }
+#define CHECK_TYPE(t) { TYPEOF(t) a = 0; TYPEOF(MSVCRT(t)) b = a; a = b; CHECK_SIZE(t); }
 #define CHECK_STRUCT(s) ok(sizeof(struct s) == sizeof(struct MSVCRT(s)), "Struct has different sizes\n")
 #define CHECK_FIELD(s,e) ok(OFFSET(s,e) == OFFSET(MSVCRT(s),e), "Bad offset\n")
 #define CHECK_DEF(d) ok(d == MSVCRT_##d, "Defines (MSVCRT_)" #d " are different: %d vs. %d\n", d, MSVCRT_##d)




More information about the wine-cvs mailing list