From 3dce639aae4662d934915fb98181019a1b619fc0 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:06 +0200 Subject: [PATCH] Appearance.c Removed fallthrough warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- WPrefs.app/Appearance.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c index a05dba3b..909812d2 100644 --- a/WPrefs.app/Appearance.c +++ b/WPrefs.app/Appearance.c @@ -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;