diff libinterp/corefcn/oct-tex-lexer.in.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 4f12819a634f
children 194eb4bd202b
line wrap: on
line diff
--- a/libinterp/corefcn/oct-tex-lexer.in.ll	Thu Dec 21 12:14:10 2017 -0500
+++ b/libinterp/corefcn/oct-tex-lexer.in.ll	Thu Dec 21 12:34:51 2017 -0500
@@ -26,16 +26,16 @@
 #endif
 
 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
-// This one needs to be global.
-#pragma GCC diagnostic ignored "-Wunused-function"
+   // 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"
+   // 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"
 #endif
 
 // Define away the deprecated register storage class specifier to avoid
@@ -178,17 +178,17 @@
 
 %{
 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
-// Also disable this warning for functions that is generated by flex
-// after the pattern rules.
-#pragma GCC diagnostic ignored "-Wunused-parameter"
+   // Also disable this warning for functions that are generated by flex
+   // after the pattern rules.
+#  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 *