diff options
author | Yang Tse <yangsita@gmail.com> | 2011-09-03 16:06:10 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-09-03 16:07:09 +0200 |
commit | 6b75d2c2df7209919a70a29a4479625b62fb3c28 (patch) | |
tree | a5b2bd4195db4cb69f3299814e910bd04ebb6eac /tests | |
parent | 2be65bb0c5317b6821882b41558bd8cd2eb64d25 (diff) | |
download | curl-6b75d2c2df7209919a70a29a4479625b62fb3c28.tar.gz |
fix a bunch of MSVC compiler warnings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/first.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib500.c | 2 | ||||
-rw-r--r-- | tests/server/getpart.c | 2 | ||||
-rw-r--r-- | tests/unit/curlcheck.h | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/libtest/first.c b/tests/libtest/first.c index f35528f71..d6b486003 100644 --- a/tests/libtest/first.c +++ b/tests/libtest/first.c @@ -83,7 +83,7 @@ static void memory_tracking_init(void) } } #else -# define memory_tracking_init() +# define memory_tracking_init() Curl_nop_stmt #endif int main(int argc, char **argv) diff --git a/tests/libtest/lib500.c b/tests/libtest/lib500.c index 8ebeb1292..51680fc31 100644 --- a/tests/libtest/lib500.c +++ b/tests/libtest/lib500.c @@ -52,7 +52,7 @@ static void setupcallbacks(CURL *curl) } #else -#define setupcallbacks(x) +#define setupcallbacks(x) Curl_nop_stmt #endif diff --git a/tests/server/getpart.c b/tests/server/getpart.c index 2351e1cc3..9384d0cb0 100644 --- a/tests/server/getpart.c +++ b/tests/server/getpart.c @@ -49,7 +49,7 @@ struct SessionHandle { #ifdef DEBUG_GETPART #define show(x) printf x #else -#define show(x) +#define show(x) Curl_nop_stmt #endif #if defined(_MSC_VER) && defined(_DLL) diff --git a/tests/unit/curlcheck.h b/tests/unit/curlcheck.h index 4b4d32c8d..96203e075 100644 --- a/tests/unit/curlcheck.h +++ b/tests/unit/curlcheck.h @@ -49,7 +49,7 @@ fprintf(stderr, "%s:%d test failed: '%s'\n", \ __FILE__, __LINE__, msg); \ unitfail++; \ - } while(0) + } WHILE_FALSE /* The abort macros mark the current test step as failed, and exit the test */ @@ -74,7 +74,7 @@ __FILE__, __LINE__, msg); \ unitfail++; \ goto unit_test_abort; \ - } while(0) + } WHILE_FALSE |