From 179306d57fcc813b18205a916f1cd448be610ded Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 29 Dec 2019 10:02:31 +1100 Subject: Backport: Move suppression of Clang warning missing-braces from makefile to apply to lexers but not most other files. Backport of changeset 7845:f3264e486266. --- lexlib/LexerModule.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lexlib/LexerModule.h') 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 -- cgit v1.2.3