Fix some new switch warnings

This commit is contained in:
Michael Catanzaro 2020-12-05 09:59:08 -06:00
parent 19696a6739
commit 9411e198b8
2 changed files with 6 additions and 2 deletions

View file

@ -206,8 +206,6 @@ public class ChessClock : Object
int white_move_used = 0, black_move_used = 0;
switch (clock_type)
{
case ClockType.SIMPLE:
break;
case ClockType.FISCHER:
if (active_color == Color.WHITE)
white_extra_seconds += extra_seconds;
@ -222,6 +220,8 @@ public class ChessClock : Object
else
black_extra_seconds += int.min (extra_seconds, black_move_used);
break;
default:
break;
}
}
}

View file

@ -53,6 +53,8 @@ public class ChessMove : Object
case CheckState.CHECKMATE:
builder.append_c ('#');
break;
default:
break;
}
return builder.str;
@ -105,6 +107,8 @@ public class ChessMove : Object
case CheckState.CHECKMATE:
builder.append_c ('#');
break;
default:
break;
}
return builder.str;