Austin English : msvcr90/tests: Don't check return values inside of if(0) ( LLVM/Clang).

Alexandre Julliard julliard at winehq.org
Thu Feb 10 11:42:10 CST 2011


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

Author: Austin English <austinenglish at gmail.com>
Date:   Wed Feb  9 13:43:38 2011 -0800

msvcr90/tests: Don't check return values inside of if(0) (LLVM/Clang).

---

 dlls/msvcr90/tests/msvcr90.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msvcr90/tests/msvcr90.c b/dlls/msvcr90/tests/msvcr90.c
index dc90103..ace9e35 100644
--- a/dlls/msvcr90/tests/msvcr90.c
+++ b/dlls/msvcr90/tests/msvcr90.c
@@ -747,9 +747,9 @@ static void test__atoflt(void)
 if (0)
 {
     /* crashes on native */
-    ret = p_atoflt(NULL, NULL);
-    ret = p_atoflt(NULL, (char*)_atoflt_testdata[0].str);
-    ret = p_atoflt(&flt, NULL);
+    p_atoflt(NULL, NULL);
+    p_atoflt(NULL, (char*)_atoflt_testdata[0].str);
+    p_atoflt(&flt, NULL);
 }
 
     while (_atoflt_testdata[i].str)
@@ -846,7 +846,7 @@ static void test__realloc_crt(void)
 if (0)
 {
     /* crashes on some systems starting Vista */
-    mem = p_realloc_crt(NULL, 10);
+    p_realloc_crt(NULL, 10);
 }
 
     mem = p_malloc(10);




More information about the wine-cvs mailing list