summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2021-07-15 13:13:03 +1000
committerTony Cook <tony@develop-help.com>2021-07-15 13:13:03 +1000
commit7169efc77525df70484a824bff4ceebd1fafc760 (patch)
tree36fbc3a0beb384f5eb77a533bedfb5e8b4c6ab92 /perl.h
parent7ffb9e762a2e972f46cd37962bd0aae40a4e7e3b (diff)
downloadperl-7169efc77525df70484a824bff4ceebd1fafc760.tar.gz
skip using gcc brace groups for STMT_START/END
This warns (and warns a lot) on clang, and since these are documented to only work to make a single statement, so there's little value to allowing them to work in an expression. An alternative would be to disable GCC brace groups on clang, but these are used extensively in DEBUGGING builds to add extra checks in sv.h.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/perl.h b/perl.h
index 6c3cb6d669..917ed5fcbb 100644
--- a/perl.h
+++ b/perl.h
@@ -734,13 +734,8 @@ Example usage:
Trying to select a version that gives no warnings...
*/
#if !(defined(STMT_START) && defined(STMT_END))
-# ifdef PERL_USE_GCC_BRACE_GROUPS
-# define STMT_START (void)( /* gcc supports "({ STATEMENTS; })" */
-# define STMT_END )
-# else
# define STMT_START do
# define STMT_END while (0)
-# endif
#endif
#ifndef BYTEORDER /* Should never happen -- byteorder is in config.h */