For some reason, g++ cannot determine that the break statements will not be reached. Removing them removes the warning.

This commit is contained in:
Steve Checkoway
2005-06-19 00:26:20 +00:00
parent c1f4c33fb9
commit cc8aa318ba
-2
View File
@@ -181,7 +181,6 @@ static StepsType DetermineStepsType( int iPlayer, const NoteData &nd )
case 9: return STEPS_TYPE_PNM_NINE;
default: return STEPS_TYPE_INVALID;
}
break;
case 2: // couple/battle
return STEPS_TYPE_DANCE_COUPLE;
case 3: // double
@@ -196,7 +195,6 @@ static StepsType DetermineStepsType( int iPlayer, const NoteData &nd )
case 16: return STEPS_TYPE_BM_DOUBLE7;
default: return STEPS_TYPE_INVALID;
}
break;
default:
LOG->Warn( "Invalid #PLAYER value %d", iPlayer );
return STEPS_TYPE_INVALID;