diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-03-24 11:51:46 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-03-24 11:51:46 +0000 |
commit | 410319be38cf59e3f4abf4e02ad9f57622d4d2d5 (patch) | |
tree | 3b853b440747d3c6529a6f945625e877736e9810 /handy.h | |
parent | 210c4a3d4af9a86fc2ee7906a6a02d684efd3baa (diff) | |
download | perl-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)))) |