aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexSML.cxx
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2017-09-25 11:18:25 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2017-09-25 11:18:25 +1000
commitb8bc4d145c209b33df8a8ef47a859bd6b899341b (patch)
treed39d5ac16322f5cf66f65d4d384d0c2eb5cabb40 /lexers/LexSML.cxx
parentb7fc7c238595d50bab92a0160ebd8c45b8486977 (diff)
downloadscintilla-mirror-b8bc4d145c209b33df8a8ef47a859bd6b899341b.tar.gz
Backport: Avoiding comma operator warnings from Clang in lexers.
Backport of changeset 6395:1ca06526aa8e.
Diffstat (limited to 'lexers/LexSML.cxx')
-rw-r--r--lexers/LexSML.cxx4
1 files changed, 4 insertions, 0 deletions
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 == '_';}