From ebecb9bd3a4cdab43c2847ab35ceeb49618ea5ae Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 4 Jun 2015 08:40:05 -0400 Subject: [PATCH] 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 --- src/terminal/terminalframebuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal/terminalframebuffer.h b/src/terminal/terminalframebuffer.h index 836aa84..eeb5dc4 100644 --- a/src/terminal/terminalframebuffer.h +++ b/src/terminal/terminalframebuffer.h @@ -197,7 +197,7 @@ namespace Terminal { MOUSE_REPORTING_VT220 = 1000, MOUSE_REPORTING_VT220_HILIGHT = 1001, MOUSE_REPORTING_BTN_EVENT = 1002, - MOUSE_REPORTING_ANY_EVENT = 1003, + MOUSE_REPORTING_ANY_EVENT = 1003 } mouse_reporting_mode; bool mouse_focus_event; // 1004 @@ -207,7 +207,7 @@ namespace Terminal { MOUSE_ENCODING_DEFAULT = 0, MOUSE_ENCODING_UTF8 = 1005, MOUSE_ENCODING_SGR = 1006, - MOUSE_ENCODING_URXVT = 1015, + MOUSE_ENCODING_URXVT = 1015 } mouse_encoding_mode; bool application_mode_cursor_keys;