diff options
author | Neil <nyamatongwe@gmail.com> | 2014-07-24 12:48:06 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-07-24 12:48:06 +1000 |
commit | 64cd5fc9e35f9b259f29cc394f7c81fee2b067d6 (patch) | |
tree | 7315d690e72d48c509ed25c502618a389ac4d121 | |
parent | fcdd797b0edfda0e6bbc89f7848c32094efe6669 (diff) | |
download | scintilla-mirror-64cd5fc9e35f9b259f29cc394f7c81fee2b067d6.tar.gz |
Feature [feature-requests:#1059]. Disable -Wshadow warnings for lexers.
-rw-r--r-- | lexlib/LexerModule.h | 5 |
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 |