From 2ed24561ffb6c1f79dd3a65a7f9f1beaafd22e16 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 15 Nov 2014 19:40:56 +0100 Subject: [PATCH] wmaker: removed case from switch that is unreachable (Coverity #50043) There is a check a few line above that already return from the function because there is nothing to do for that case, so the case statement cannot be reached. As not all case are covered in that switch anyway that won't make a difference, and because an 'int' is used instead of an 'enum' the compiler will not be able complain anyway. Signed-off-by: Christophe CURIS Signed-off-by: Carlos R. Mafra --- src/texture.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/texture.c b/src/texture.c index c73c85a0..e69fe485 100644 --- a/src/texture.c +++ b/src/texture.c @@ -541,8 +541,6 @@ void wDrawBevel(Drawable d, unsigned width, unsigned height, WTexSolid * texture dim = texture->dim_gc; dark = texture->dark_gc; switch (relief) { - case WREL_FLAT: - return; case WREL_MENUENTRY: case WREL_RAISED: case WREL_ICON: