From 64cd5fc9e35f9b259f29cc394f7c81fee2b067d6 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 24 Jul 2014 12:48:06 +1000 Subject: Feature [feature-requests:#1059]. Disable -Wshadow warnings for lexers. --- lexlib/LexerModule.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lexlib/LexerModule.h') 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 -- cgit v1.2.3