From 01f449739adb09a21772a83e939e5c96152d636c Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Mon, 10 Dec 2012 16:28:19 +0000 Subject: [PATCH] fix warning in PmopSTASH_set() In the threaded version of PmopSTASH_set(), the assigned value is a PADOFFSET, not a pointer; so use 0 rather than NULL for the default value. This keeps clang happy. --- op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op.h b/op.h index c1800df..286b880 100644 --- a/op.h +++ b/op.h @@ -457,7 +457,7 @@ struct pmop { # define PmopSTASH_set(o,hv) \ (assert_((o)->op_pmflags & PMf_ONCE) \ (o)->op_pmstashstartu.op_pmstashoff = \ - (hv) ? alloccopstash(hv) : NULL) + (hv) ? alloccopstash(hv) : 0) #else # define PmopSTASH(o) \ (((o)->op_pmflags & PMf_ONCE) ? (o)->op_pmstashstartu.op_pmstash : NULL) -- 1.8.3.1