diff libinterp/parse-tree/lex.ll @ 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 268d31e7aa4f
children fe54e9633815
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Thu Dec 21 12:14:10 2017 -0500
+++ b/libinterp/parse-tree/lex.ll	Thu Dec 21 12:34:51 2017 -0500
@@ -37,20 +37,19 @@
 #endif
 
 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
-// This one needs to be global.
-#pragma GCC diagnostic ignored "-Wunused-function"
-
-// Disable these warnings for code that is generated by flex, including
-// pattern 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"
-#pragma GCC diagnostic ignored "-Wsign-compare"
-#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
-#if defined (HAVE_WARNING_IMPLICIT_FALLTHROUGH)
-#  pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
-#endif
-
+   // This one needs to be global.
+#  pragma GCC diagnostic ignored "-Wunused-function"
+   // Disable these warnings for code that is generated by flex,
+   // including pattern 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"
+#  pragma GCC diagnostic ignored "-Wsign-compare"
+#  pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
+#  if defined (HAVE_WARNING_IMPLICIT_FALLTHROUGH)
+#    pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
+#  endif
 #endif
 
 // Define away the deprecated register storage class specifier to avoid
@@ -1780,17 +1779,17 @@
 
 %{
 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
-// Disable these warnings for flex code.
-#pragma GCC diagnostic ignored "-Wold-style-cast"
-#pragma GCC diagnostic ignored "-Wunused-parameter"
+   // Disable these warnings for flex code.
+#  pragma GCC diagnostic ignored "-Wold-style-cast"
+#  pragma GCC diagnostic ignored "-Wunused-parameter"
 #endif
 %}
 
 %%
 
 #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
 
 void *