From: Nicholas Clark Date: Wed, 24 Mar 2004 11:51:46 +0000 (+0000) Subject: Unlike perl, 0 in void context isn't special cased in C :-) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=410319be38cf59e3f4abf4e02ad9f57622d4d2d5;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/handy.h b/handy.h index bb95814..b88c729 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))))