1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

gradient.c Removed implicit-fallthrough warnings

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) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix)
2019-06-19 21:11:03 +02:00
committed by Carlos R. Mafra
parent 95561fba08
commit bf644338e4

View File

@@ -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;