diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-12-29 10:02:31 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-12-29 10:02:31 +1100 | 
| commit | 179306d57fcc813b18205a916f1cd448be610ded (patch) | |
| tree | a4b2c15a351163d31cc9de5adbc50330bfee7ab3 /lexlib/LexerModule.h | |
| parent | a0d074425813daed19550b909275fd68f43975cf (diff) | |
| download | scintilla-mirror-179306d57fcc813b18205a916f1cd448be610ded.tar.gz | |
Backport: Move suppression of Clang warning missing-braces from makefile to apply to
lexers but not most other files.
Backport of changeset 7845:f3264e486266.
Diffstat (limited to 'lexlib/LexerModule.h')
| -rw-r--r-- | lexlib/LexerModule.h | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h index ab338bec6..1b3ad2f30 100644 --- a/lexlib/LexerModule.h +++ b/lexlib/LexerModule.h @@ -82,6 +82,12 @@ inline int Maximum(int a, int b) {  #pragma GCC diagnostic ignored "-Wshadow"  #endif +// Clang doesn't like omitting braces in array initialization but they just add +// noise to LexicalClass arrays in lexers +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wmissing-braces" +#endif +  }  #endif  | 
