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 | 0069837ea75b23cb96294dad8192b2db7d5e9f4b (patch) | |
tree | e9d3b60b418c8723151a655aa0a8dd9ffc85d67c /lexlib/LexerModule.h | |
parent | 3da0bc57839e659c5078f59a8c6a6562712d3cdb (diff) | |
download | scintilla-mirror-0069837ea75b23cb96294dad8192b2db7d5e9f4b.tar.gz |
Feature [feature-requests:#1059]. Disable -Wshadow warnings for lexers.
Diffstat (limited to 'lexlib/LexerModule.h')
-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 |