Enable more compiler warnings and treat them as errors.
This commit is contained in:
+4
-3
@@ -3238,6 +3238,7 @@ bool ScreenEdit::InputPlay( const InputEventPlus &input, EditButton EditB )
|
||||
break;
|
||||
|
||||
// fall through to input handling logic:
|
||||
[[fallthrough]];
|
||||
case PLAYER_1:
|
||||
{
|
||||
switch( gbt )
|
||||
@@ -5255,12 +5256,12 @@ void ScreenEdit::HandleAlterMenuChoice(AlterMenuChoice c, const std::vector<int>
|
||||
case tempo:
|
||||
{
|
||||
// This affects all steps.
|
||||
AlterType at = (AlterType)answers[c];
|
||||
const auto tt = static_cast<TempoType>(answers[c]);
|
||||
float fScale = -1;
|
||||
|
||||
switch( at )
|
||||
switch( tt )
|
||||
{
|
||||
DEFAULT_FAIL( at );
|
||||
DEFAULT_FAIL( tt );
|
||||
case compress_2x: fScale = 0.5f; break;
|
||||
case compress_3_2: fScale = 2.0f/3; break;
|
||||
case compress_4_3: fScale = 0.75f; break;
|
||||
|
||||
Reference in New Issue
Block a user