Fix some new switch warnings
This commit is contained in:
parent
19696a6739
commit
9411e198b8
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue