Add warning for fallthrough to switch-case
This commit is contained in:
parent
eefe0df984
commit
52fb07bea6
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user