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