summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-04-25 18:09:15 -0600
committerJames E Keenan <jkeenan@cpan.org>2020-04-26 07:30:13 -0400
commit82dc07826c7f4aec5317e1b31314a561ea14878e (patch)
tree8f14c7b5629b71638545debbe0afbc3ed3f4e132 /regcomp.h
parentd23733db32b12b784b2bf07cae6d645569636f6d (diff)
downloadperl-82dc07826c7f4aec5317e1b31314a561ea14878e.tar.gz
Use dNOOP for otherwise empty declarations
Otherwise, the semi-colon the code has afterwards can be interpreted by some compilers as ending the block of declarations, and treat any later declarations in the same block as erors in C89. For an example, see the ticket this fixes #17725
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/regcomp.h b/regcomp.h
index 9634e94e9a..312c9055e7 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -1162,10 +1162,10 @@ re.pm, especially to the documentation.
#else /* if not DEBUGGING */
-#define DECLARE_AND_GET_RE_DEBUG_FLAGS
-#define RE_PV_COLOR_DECL(rpv,rlen,isuni,dsv,pv,l,m,c1,c2)
+#define DECLARE_AND_GET_RE_DEBUG_FLAGS dNOOP
+#define RE_PV_COLOR_DECL(rpv,rlen,isuni,dsv,pv,l,m,c1,c2) dNOOP
#define RE_SV_ESCAPE(rpv,isuni,dsv,sv,m)
-#define RE_PV_QUOTED_DECL(rpv,isuni,dsv,pv,l,m)
+#define RE_PV_QUOTED_DECL(rpv,isuni,dsv,pv,l,m) dNOOP
#define RE_SV_DUMPLEN(ItEm)
#define RE_SV_TAIL(ItEm)
#define isDEBUG_WILDCARD 0