aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexerModule.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-07-24 12:48:06 +1000
committerNeil <nyamatongwe@gmail.com>2014-07-24 12:48:06 +1000
commit64cd5fc9e35f9b259f29cc394f7c81fee2b067d6 (patch)
tree7315d690e72d48c509ed25c502618a389ac4d121 /lexlib/LexerModule.h
parentfcdd797b0edfda0e6bbc89f7848c32094efe6669 (diff)
downloadscintilla-mirror-64cd5fc9e35f9b259f29cc394f7c81fee2b067d6.tar.gz
Feature [feature-requests:#1059]. Disable -Wshadow warnings for lexers.
Diffstat (limited to 'lexlib/LexerModule.h')
-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