1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-02 06:05:45 +01:00

Appearance.c Removed fallthrough warning

This patch adds some comments to remove the falthrough warning.

Appearance.c: In function ‘renderTexture’:
../WINGs/WINGs/WUtil.h:230:32: warning: this statement may fall through [-Wimplicit-fallthrough=]
 #define wwarning(fmt, args...) __wmessage( __func__, __FILE__, __LINE__, WMESSAGE_TYPE_WARNING, fmt, ## args)
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Appearance.c:675:4: note: in expansion of macro ‘wwarning’
    wwarning(_("unknown direction in '%s', falling back to diagonal"), type);
    ^~~~~~~~
Appearance.c:676:3: note: here
   case 'D':
   ^~~~

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:06 +02:00
committed by Carlos R. Mafra
parent 00dffbe317
commit 3dce639aae

View File

@@ -611,6 +611,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
break;
default:
wwarning(_("unknown direction in '%s', falling back to diagonal"), type);
/* FALLTHRU */
case 'D':
style = RDiagonalGradient;
break;
@@ -637,6 +638,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
break;
default:
wwarning(_("unknown direction in '%s', falling back to diagonal"), type);
/* FALLTHRU */
case 'D':
style = RDiagonalGradient;
break;
@@ -671,6 +673,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
break;
default:
wwarning(_("unknown direction in '%s', falling back to diagonal"), type);
/* FALLTHRU */
case 'D':
style = RDiagonalGradient;
break;