Enable more compiler warnings and treat them as errors.

This commit is contained in:
Brian Phlipot
2023-02-02 11:54:17 -08:00
committed by teejusb
parent f8f6f12999
commit 4a6b1a743c
141 changed files with 625 additions and 757 deletions
+4 -3
View File
@@ -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;