aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lexlib/LexerModule.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h
index 675e2a700..5993c0fe9 100644
--- a/lexlib/LexerModule.h
+++ b/lexlib/LexerModule.h
@@ -70,6 +70,11 @@ inline int Maximum(int a, int b) {
#pragma warning(disable: 4244 4309 4456 4457)
#endif
+// Turn off shadow warnings for lexers as may be maintained by others
+#if defined(__GNUC__)
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
#ifdef SCI_NAMESPACE
}
#endif