Add warning for fallthrough to switch-case

This commit is contained in:
Mario Hüttel 2019-09-18 20:38:32 +02:00
parent eefe0df984
commit 52fb07bea6

View File

@ -177,6 +177,7 @@ static void render_cell(struct gds_cell *cell, struct cairo_layer *layers, doubl
cairo_stroke(cr); cairo_stroke(cr);
break; break;
case GRAPHIC_BOX: case GRAPHIC_BOX:
/* Expected fallthrough */
case GRAPHIC_POLYGON: case GRAPHIC_POLYGON:
cairo_set_line_width(cr, 0.1/scale); cairo_set_line_width(cr, 0.1/scale);
cairo_close_path(cr); cairo_close_path(cr);