From bf644338e4e0a3a401d3707b4bce722f09e5c821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 19 Jun 2019 21:11:03 +0200 Subject: [PATCH] gradient.c Removed implicit-fallthrough warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds the comments to remove the warnings. gradient.c: In function ‘renderGradientWidth’: gradient.c:162:10: warning: this statement may fall through [-Wimplicit-fallthrough=] *ptr++ = b; ~~~~~~~^~~ gradient.c:163:2: note: here case 2: ^~~~ gradient.c:166:10: warning: this statement may fall through [-Wimplicit-fallthrough=] *ptr++ = b; ~~~~~~~^~~ gradient.c:167:2: note: here case 1: ^~~~ Signed-off-by: Rodolfo García Peñas (kix) --- wrlib/gradient.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrlib/gradient.c b/wrlib/gradient.c index a537959e..31c0cdfb 100644 --- a/wrlib/gradient.c +++ b/wrlib/gradient.c @@ -160,10 +160,12 @@ static inline unsigned char *renderGradientWidth(unsigned char *ptr, unsigned wi *ptr++ = r; *ptr++ = g; *ptr++ = b; + /* FALLTHRU */ case 2: *ptr++ = r; *ptr++ = g; *ptr++ = b; + /* FALLTHRU */ case 1: *ptr++ = r; *ptr++ = g;