summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-20 09:04:34 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-21 21:08:23 -0400
commit6ab56f1e9333e6777f0fd1d37c91574aa3a5af02 (patch)
tree78c94648b5a72f9f3df706a104e59586e52a2495 /perl.h
parenta7b0b63ac23b24666cd605e01393e7f8d45d02ab (diff)
downloadperl-6ab56f1e9333e6777f0fd1d37c91574aa3a5af02.tar.gz
Try simpler usage for file-level GCC_DIAG_RESTORE.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/perl.h b/perl.h
index 58dd2c1e96..9e3c7433de 100644
--- a/perl.h
+++ b/perl.h
@@ -391,12 +391,8 @@
* semicolon being left alone on a line:
* ;
* which makes compilers mildly cranky. Therefore at file level one
- * should use the #ifdef GCC_DIAG_PRAGMA guard around the GCC_DIAG_IGNORE
- * and GCC_DIAG_RESTORE.
- *
- * (An alternative solution would be not to use the semicolon, and then
- * the empty definition would be just empty, but that would make the code
- * look odd, and might mess up e.g. smart editors indenting the code.)
+ * should use the GCC_DIAG_IGNORE and GCC_DIAG_RESTORE_FILE *without*
+ * the semicolons.
*
* (A dead-on-arrival solution would be to try to define the macros as
* NOOP or dNOOP, those don't work both inside functions and outside.)