aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexCaml.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
commit57d8b220e6fb11a6070ffc81948eb5d53ec51c9b (patch)
tree24b4fec41c6baedef1360116f946eb2123b01452 /lexers/LexCaml.cxx
parenta230b72625317dd9235d92fd92c802a91842f0c6 (diff)
downloadscintilla-mirror-57d8b220e6fb11a6070ffc81948eb5d53ec51c9b.tar.gz
Avoiding comma operator warnings from Clang in lexers.
Diffstat (limited to 'lexers/LexCaml.cxx')
-rw-r--r--lexers/LexCaml.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/lexers/LexCaml.cxx b/lexers/LexCaml.cxx
index 038068a7b..1339b5dcc 100644
--- a/lexers/LexCaml.cxx
+++ b/lexers/LexCaml.cxx
@@ -37,6 +37,10 @@
#include "CharacterSet.h"
#include "LexerModule.h"
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Wcomma"
+#endif
+
// Since the Microsoft __iscsym[f] funcs are not ANSI...
inline int iscaml(int c) {return isalnum(c) || c == '_';}
inline int iscamlf(int c) {return isalpha(c) || c == '_';}