summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-03-24 11:51:46 +0000
committerNicholas Clark <nick@ccl4.org>2004-03-24 11:51:46 +0000
commit410319be38cf59e3f4abf4e02ad9f57622d4d2d5 (patch)
tree3b853b440747d3c6529a6f945625e877736e9810 /handy.h
parent210c4a3d4af9a86fc2ee7906a6a02d684efd3baa (diff)
downloadperl-410319be38cf59e3f4abf4e02ad9f57622d4d2d5.tar.gz
Unlike perl, 0 in void context isn't special cased in C :-)
(So it warns). Tweak the no-action malloc wrap checkers to avoid warnings. p4raw-id: //depot/perl@22577
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/handy.h b/handy.h
index bb95814075..b88c729e5f 100644
--- a/handy.h
+++ b/handy.h
@@ -609,9 +609,9 @@ hopefully catches attempts to access uninitialized memory.
#else
-#define MEM_WRAP_CHECK(n,t) 0
-#define MEM_WRAP_CHECK_1(n,t,a) 0
-#define MEM_WRAP_CHECK_2(n,t,a,b) 0
+#define MEM_WRAP_CHECK(n,t)
+#define MEM_WRAP_CHECK_1(n,t,a)
+#define MEM_WRAP_CHECK_2(n,t,a,b)
#define New(x,v,n,t) (v = (t*)safemalloc((MEM_SIZE)((n)*sizeof(t))))
#define Newc(x,v,n,t,c) (v = (c*)safemalloc((MEM_SIZE)((n)*sizeof(t))))