Remove trailing commas from enums

I do sympathize with the motivation for these trailing commas, but
they cause silly build failures with --enable-compile-warnings=error
(which is used at least by the Debian/Ubuntu package).

  CXX      parseraction.o
In file included from terminal.h:42:0,
                 from parseraction.cc:37:
terminalframebuffer.h:200:39: error: comma at end of enumerator list [-Werror=pedantic]
       MOUSE_REPORTING_ANY_EVENT = 1003,
                                       ^
terminalframebuffer.h:210:34: error: comma at end of enumerator list [-Werror=pedantic]
       MOUSE_ENCODING_URXVT = 1015,
                                  ^
cc1plus: all warnings being treated as errors
Makefile:354: recipe for target 'parseraction.o' failed

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2015-06-04 08:40:05 -04:00
parent 937ab14f86
commit ebecb9bd3a
+2 -2
View File
@@ -197,7 +197,7 @@ namespace Terminal {
MOUSE_REPORTING_VT220 = 1000, MOUSE_REPORTING_VT220 = 1000,
MOUSE_REPORTING_VT220_HILIGHT = 1001, MOUSE_REPORTING_VT220_HILIGHT = 1001,
MOUSE_REPORTING_BTN_EVENT = 1002, MOUSE_REPORTING_BTN_EVENT = 1002,
MOUSE_REPORTING_ANY_EVENT = 1003, MOUSE_REPORTING_ANY_EVENT = 1003
} mouse_reporting_mode; } mouse_reporting_mode;
bool mouse_focus_event; // 1004 bool mouse_focus_event; // 1004
@@ -207,7 +207,7 @@ namespace Terminal {
MOUSE_ENCODING_DEFAULT = 0, MOUSE_ENCODING_DEFAULT = 0,
MOUSE_ENCODING_UTF8 = 1005, MOUSE_ENCODING_UTF8 = 1005,
MOUSE_ENCODING_SGR = 1006, MOUSE_ENCODING_SGR = 1006,
MOUSE_ENCODING_URXVT = 1015, MOUSE_ENCODING_URXVT = 1015
} mouse_encoding_mode; } mouse_encoding_mode;
bool application_mode_cursor_keys; bool application_mode_cursor_keys;