summaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-03 16:06:10 +0200
committerYang Tse <yangsita@gmail.com>2011-09-03 16:07:09 +0200
commit6b75d2c2df7209919a70a29a4479625b62fb3c28 (patch)
treea5b2bd4195db4cb69f3299814e910bd04ebb6eac /lib/memdebug.c
parent2be65bb0c5317b6821882b41558bd8cd2eb64d25 (diff)
downloadcurl-6b75d2c2df7209919a70a29a4479625b62fb3c28.tar.gz
fix a bunch of MSVC compiler warnings
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index 1a0a485a8..0b81621cb 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -42,7 +42,7 @@
#include "memdebug.h"
#ifndef HAVE_ASSERT_H
-# define assert(x) do { } while (0)
+# define assert(x) Curl_nop_stmt
#endif
/*
@@ -82,13 +82,13 @@
#ifdef CURL_MT_MALLOC_FILL
# define mt_malloc_fill(buf,len) memset((buf), CURL_MT_MALLOC_FILL, (len))
#else
-# define mt_malloc_fill(buf,len)
+# define mt_malloc_fill(buf,len) Curl_nop_stmt
#endif
#ifdef CURL_MT_FREE_FILL
# define mt_free_fill(buf,len) memset((buf), CURL_MT_FREE_FILL, (len))
#else
-# define mt_free_fill(buf,len)
+# define mt_free_fill(buf,len) Curl_nop_stmt
#endif
struct memdebug {