From: Christophe CURIS <[email protected]>

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 <[email protected]>
---
 src/texture.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/texture.c b/src/texture.c
index c73c85a..e69fe48 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:
-- 
2.1.1


-- 
To unsubscribe, send mail to [email protected].

Reply via email to