aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexerModule.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-12-29 10:02:31 +1100
committerNeil <nyamatongwe@gmail.com>2019-12-29 10:02:31 +1100
commit2ba73fb5102f510c93f69a9a4b34954227eddca6 (patch)
tree860904fbb0ca4ecd1a2bf6a61e29fe51cdac4bd7 /lexlib/LexerModule.h
parent6c254c94360737545f2817740c87569e22cac0b1 (diff)
downloadscintilla-mirror-2ba73fb5102f510c93f69a9a4b34954227eddca6.tar.gz
Move suppression of Clang warning missing-braces from makefile to apply to
lexers but not most other files.
Diffstat (limited to 'lexlib/LexerModule.h')
-rw-r--r--lexlib/LexerModule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h
index e1d65e703..a6dda61ed 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