diff libinterp/parse-tree/oct-parse.in.yy @ 24444:53ca76c5cc8d

maint: Indent pragmas as other preprocessor directives.
author John W. Eaton <jwe@octave.org>
date Thu, 21 Dec 2017 12:34:51 -0500
parents ea3458c1d884
children 194eb4bd202b
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy	Thu Dec 21 12:14:10 2017 -0500
+++ b/libinterp/parse-tree/oct-parse.in.yy	Thu Dec 21 12:34:51 2017 -0500
@@ -99,11 +99,12 @@
 #define scanner lexer.scanner
 
 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
-// Disable this warning for code that is generated by Bison, including
-// grammar rules.  Push the current state so we can restore the warning
-// state prior to functions we define at the bottom of the file.
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wold-style-cast"
+   // Disable this warning for code that is generated by Bison,
+   // including grammar rules.  Push the current state so we can
+   // restore the warning state prior to functions we define at
+   // the bottom of the file.
+#  pragma GCC diagnostic push
+#  pragma GCC diagnostic ignored "-Wold-style-cast"
 #endif
 
 %}
@@ -2071,8 +2072,8 @@
 %%
 
 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
-// Restore prevailing warning state for remainder of the file.
-#pragma GCC diagnostic pop
+   // Restore prevailing warning state for remainder of the file.
+#  pragma GCC diagnostic pop
 #endif
 
 // Generic error messages.