summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-03-28 10:52:18 +0100
committerDavid Mitchell <davem@iabyn.com>2016-03-28 11:04:36 +0100
commit9d9905599cad5eeb33b2a64c023b97005694fbcd (patch)
tree319eb231de52a6b72cc87415d10fc95ba5b2c16a /perl.h
parent4caf7d8c4666d39b6b752a52ec5e19d9504f5f31 (diff)
downloadperl-9d9905599cad5eeb33b2a64c023b97005694fbcd.tar.gz
silence -Wparentheses-equality
Clang has taken it upon itself to warn when an equality is wrapped in double parentheses, e.g. ((foo == bar)) Which is a bit dumb, as any code along the lines of #define isBAR (foo == BAR) if (isBAR) {} will trigger the warning. This commit shuts clang up by putting in a harmless cast: #define isBAR cBOOL(foo == BAR)
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 2ee79c4262..0468a1c53a 100644
--- a/perl.h
+++ b/perl.h
@@ -5275,7 +5275,7 @@ EXTCONST char *const PL_phase_names[];
/* Do not use this macro. It only exists for extensions that rely on PL_dirty
* instead of using the newer PL_phase, which provides everything PL_dirty
* provided, and more. */
-# define PL_dirty (PL_phase == PERL_PHASE_DESTRUCT)
+# define PL_dirty cBOOL(PL_phase == PERL_PHASE_DESTRUCT)
# define PL_amagic_generation PL_na
#endif /* !PERL_CORE */