From 57d8b220e6fb11a6070ffc81948eb5d53ec51c9b Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Mon, 25 Sep 2017 11:18:25 +1000 Subject: Avoiding comma operator warnings from Clang in lexers. --- lexers/LexSML.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lexers/LexSML.cxx') diff --git a/lexers/LexSML.cxx b/lexers/LexSML.cxx index 1cb00f91d..ed67300d2 100644 --- a/lexers/LexSML.cxx +++ b/lexers/LexSML.cxx @@ -24,6 +24,10 @@ #include "CharacterSet.h" #include "LexerModule.h" +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wcomma" +#endif + inline int issml(int c) {return isalnum(c) || c == '_';} inline int issmlf(int c) {return isalpha(c) || c == '_';} inline int issmld(int c) {return isdigit(c) || c == '_';} -- cgit v1.2.3