From bea35bf952e101e34e086202a941706ddafd07ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Wed, 18 Sep 2019 20:38:32 +0200 Subject: [PATCH] Add warning for fallthrough to switch-case --- output-renderers/cairo-renderer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/output-renderers/cairo-renderer.c b/output-renderers/cairo-renderer.c index 572e1f4..f7ee9a0 100644 --- a/output-renderers/cairo-renderer.c +++ b/output-renderers/cairo-renderer.c @@ -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);