src/vteseq.cc doesn't compile with clang
Here are error messages:
vteseq.cc:1749:14: error: case value evaluates to -9, which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing]
case -9: /* '7' */
^
vteseq.cc:1740:14: error: case value evaluates to -10, which cannot be narrowed to type 'unsigned int' [-Wc++11-narrowing]
case -10: /* '6' */
^
2 errors generated.
This is a minimal patch which can avoid the problem:
diff --git a/src/vteseq.cc b/src/vteseq.cc
index c3a22cf5..7fe09742 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -1736,7 +1736,7 @@ Terminal::ACS(vte::parser::Sequence const& seq)
/* Since we mostly don't implement ECMA-35 anymore, we can mostly ignore this */
- switch (seq.terminator() - 0x40) {
+ switch (static_cast<int32_t>(seq.terminator()) - 0x40) {
case -10: /* '6' */
/* S7C1R/DECTC1 - truncate C1 controls
*