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

Alexandre Julliard julliard at winehq.org
Wed Feb 9 15:30:12 CST 2011


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

Author: Austin English <austinenglish at gmail.com>
Date:   Tue Feb  8 16:04:38 2011 -0800

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

---

 dlls/shlwapi/tests/ordinal.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/shlwapi/tests/ordinal.c b/dlls/shlwapi/tests/ordinal.c
index fc788b7..bfda161 100644
--- a/dlls/shlwapi/tests/ordinal.c
+++ b/dlls/shlwapi/tests/ordinal.c
@@ -1638,7 +1638,7 @@ static void test_SHFormatDateTimeA(void)
 if (0)
 {
     /* crashes on native */
-    ret = pSHFormatDateTimeA(NULL, NULL, NULL, 0);
+    pSHFormatDateTimeA(NULL, NULL, NULL, 0);
 }
 
     GetLocalTime(&st);
@@ -1799,7 +1799,7 @@ static void test_SHFormatDateTimeW(void)
 if (0)
 {
     /* crashes on native */
-    ret = pSHFormatDateTimeW(NULL, NULL, NULL, 0);
+    pSHFormatDateTimeW(NULL, NULL, NULL, 0);
 }
 
     GetLocalTime(&st);
@@ -2630,7 +2630,7 @@ static void test_SHIShellFolder_EnumObjects(void)
 
     if(0){
         /* NULL object crashes on Windows */
-        hres = pSHIShellFolder_EnumObjects(NULL, NULL, 0, NULL);
+        pSHIShellFolder_EnumObjects(NULL, NULL, 0, NULL);
     }
 
     /* SHIShellFolder_EnumObjects doesn't QI the object for IShellFolder */
@@ -2712,9 +2712,9 @@ static void test_SHGetIniString(void)
 
     if(0){
         /* these crash on Windows */
-        ret = pSHGetIniStringW(NULL, NULL, NULL, 0, NULL);
-        ret = pSHGetIniStringW(NULL, AKeyW, out, sizeof(out), TestIniW);
-        ret = pSHGetIniStringW(TestAppW, AKeyW, NULL, sizeof(out), TestIniW);
+        pSHGetIniStringW(NULL, NULL, NULL, 0, NULL);
+        pSHGetIniStringW(NULL, AKeyW, out, sizeof(out), TestIniW);
+        pSHGetIniStringW(TestAppW, AKeyW, NULL, sizeof(out), TestIniW);
     }
 
     ret = pSHGetIniStringW(TestAppW, AKeyW, out, 0, TestIniW);




More information about the wine-cvs mailing list