From 9925762de85a2283e64af020e169189d61932480 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 22 Oct 2017 13:49:29 +0100 Subject: Squash some GCC7 -Wimplicit-fallthrough warnings. --- render/html_interaction.c | 2 +- render/table.c | 52 +++++++++++++++++++++++------------------------ 2 files changed, 27 insertions(+), 27 deletions(-) (limited to 'render') diff --git a/render/html_interaction.c b/render/html_interaction.c index 55da3cc03..0ff69b5b3 100644 --- a/render/html_interaction.c +++ b/render/html_interaction.c @@ -714,7 +714,7 @@ void html_mouse_action(struct content *c, struct browser_window *bw, return; free(oldcoords); } - /* drop through */ + /* Fall through */ case GADGET_SUBMIT: if (gadget->form) { snprintf(status_buffer, sizeof status_buffer, diff --git a/render/table.c b/render/table.c index 3210fde2d..c41b9130e 100644 --- a/render/table.c +++ b/render/table.c @@ -741,27 +741,27 @@ bool table_border_is_more_eyecatching(const struct border *a, /* 3b -- sort by style */ switch (a->style) { - case CSS_BORDER_STYLE_DOUBLE: impact++; - case CSS_BORDER_STYLE_SOLID: impact++; - case CSS_BORDER_STYLE_DASHED: impact++; - case CSS_BORDER_STYLE_DOTTED: impact++; - case CSS_BORDER_STYLE_RIDGE: impact++; - case CSS_BORDER_STYLE_OUTSET: impact++; - case CSS_BORDER_STYLE_GROOVE: impact++; - case CSS_BORDER_STYLE_INSET: impact++; + case CSS_BORDER_STYLE_DOUBLE: impact++; /* Fall through */ + case CSS_BORDER_STYLE_SOLID: impact++; /* Fall through */ + case CSS_BORDER_STYLE_DASHED: impact++; /* Fall through */ + case CSS_BORDER_STYLE_DOTTED: impact++; /* Fall through */ + case CSS_BORDER_STYLE_RIDGE: impact++; /* Fall through */ + case CSS_BORDER_STYLE_OUTSET: impact++; /* Fall through */ + case CSS_BORDER_STYLE_GROOVE: impact++; /* Fall through */ + case CSS_BORDER_STYLE_INSET: impact++; /* Fall through */ default: break; } switch (b->style) { - case CSS_BORDER_STYLE_DOUBLE: impact--; - case CSS_BORDER_STYLE_SOLID: impact--; - case CSS_BORDER_STYLE_DASHED: impact--; - case CSS_BORDER_STYLE_DOTTED: impact--; - case CSS_BORDER_STYLE_RIDGE: impact--; - case CSS_BORDER_STYLE_OUTSET: impact--; - case CSS_BORDER_STYLE_GROOVE: impact--; - case CSS_BORDER_STYLE_INSET: impact--; + case CSS_BORDER_STYLE_DOUBLE: impact--; /* Fall through */ + case CSS_BORDER_STYLE_SOLID: impact--; /* Fall through */ + case CSS_BORDER_STYLE_DASHED: impact--; /* Fall through */ + case CSS_BORDER_STYLE_DOTTED: impact--; /* Fall through */ + case CSS_BORDER_STYLE_RIDGE: impact--; /* Fall through */ + case CSS_BORDER_STYLE_OUTSET: impact--; /* Fall through */ + case CSS_BORDER_STYLE_GROOVE: impact--; /* Fall through */ + case CSS_BORDER_STYLE_INSET: impact--; /* Fall through */ default: break; } @@ -774,22 +774,22 @@ bool table_border_is_more_eyecatching(const struct border *a, /* 4a -- sort by origin */ impact = 0; - switch (a_src) { - case BOX_TABLE_CELL: impact++; - case BOX_TABLE_ROW: impact++; - case BOX_TABLE_ROW_GROUP: impact++; /** \todo COL/COL_GROUP */ - case BOX_TABLE: impact++; + switch (a_src) { + case BOX_TABLE_CELL: impact++; /* Fall through */ + case BOX_TABLE_ROW: impact++; /* Fall through */ + case BOX_TABLE_ROW_GROUP: impact++; /* Fall through */ + case BOX_TABLE: impact++; /* Fall through */ default: break; } - switch (b_src) { - case BOX_TABLE_CELL: impact--; - case BOX_TABLE_ROW: impact--; - case BOX_TABLE_ROW_GROUP: impact--; /** \todo COL/COL_GROUP */ - case BOX_TABLE: impact--; + switch (b_src) { + case BOX_TABLE_CELL: impact--; /* Fall through */ + case BOX_TABLE_ROW: impact--; /* Fall through */ + case BOX_TABLE_ROW_GROUP: impact--; /* Fall through */ + case BOX_TABLE: impact--; /* Fall through */ default: break; } -- cgit v1.2.3