mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 13:28:05 +01:00
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 <christophe.curis@free.fr> Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
6e8639c47d
commit
2ed24561ff
@@ -541,8 +541,6 @@ void wDrawBevel(Drawable d, unsigned width, unsigned height, WTexSolid * texture
|
|||||||
dim = texture->dim_gc;
|
dim = texture->dim_gc;
|
||||||
dark = texture->dark_gc;
|
dark = texture->dark_gc;
|
||||||
switch (relief) {
|
switch (relief) {
|
||||||
case WREL_FLAT:
|
|
||||||
return;
|
|
||||||
case WREL_MENUENTRY:
|
case WREL_MENUENTRY:
|
||||||
case WREL_RAISED:
|
case WREL_RAISED:
|
||||||
case WREL_ICON:
|
case WREL_ICON:
|
||||||
|
|||||||
Reference in New Issue
Block a user