Add warning for fallthrough to switch-case

This commit is contained in:
Mario Hüttel 2019-09-18 20:38:32 +02:00
parent ad5e0ebe11
commit bea35bf952
1 changed files with 1 additions and 0 deletions

View File

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