mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-24 19:52:37 +01:00
Add -Werror=implicit-fallthrough to cmake build
This commit is contained in:
parent
74e084c893
commit
0b984e9a23
@ -51,6 +51,7 @@ else()
|
||||
add_compile_options(-Werror=return-type)
|
||||
add_compile_options(-Werror=overloaded-virtual)
|
||||
add_compile_options(-Werror=missing-noreturn)
|
||||
add_compile_options(-Werror=implicit-fallthrough)
|
||||
add_compile_options(-Wunused-parameter)
|
||||
add_compile_options(-Wignored-qualifiers)
|
||||
add_compile_options(-Wredundant-move)
|
||||
|
@ -1657,9 +1657,8 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
||||
//CELL_SAVEDATA_RECREATE_NO = overwrite and let the user know, not data is corrupt.
|
||||
//cellSaveData.error("Savedata %s considered broken", save_entry.dirName);
|
||||
//TODO: if this is a save, and it's not auto, then show a dialog
|
||||
// fallthrough
|
||||
[[fallthrough]];
|
||||
}
|
||||
|
||||
case CELL_SAVEDATA_RECREATE_NO_NOBROKEN:
|
||||
{
|
||||
break;
|
||||
|
@ -156,6 +156,7 @@ error_code cellVoiceCreatePort(vm::ptr<u32> portId, vm::cptr<CellVoicePortParam>
|
||||
return CELL_VOICE_ERROR_ARGUMENT_INVALID;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CELLVOICE_PORTTYPE_IN_MIC:
|
||||
case CELLVOICE_PORTTYPE_OUT_SECONDARY:
|
||||
|
@ -266,6 +266,7 @@ error_code sys_ss_appliance_info_manager(u32 code, vm::ptr<u8> buffer)
|
||||
case 0x19006:
|
||||
{
|
||||
// qa values (dex only) ??
|
||||
[[fallthrough]];
|
||||
}
|
||||
default: sys_ss.todo("sys_ss_appliance_info_manager(code=0x%x, buffer=*0x%x)", code, buffer);
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ namespace gl
|
||||
{
|
||||
default:
|
||||
rsx_log.fatal("Unexpected program domain %d", static_cast<int>(domain));
|
||||
[[fallthrough]];
|
||||
case ::glsl::program_domain::glsl_vertex_program:
|
||||
pname = GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS; break;
|
||||
case ::glsl::program_domain::glsl_fragment_program:
|
||||
|
@ -46,6 +46,7 @@ private:
|
||||
#pragma GCC diagnostic ignored "-Wsuggest-override"
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
|
||||
#else
|
||||
|
@ -1238,6 +1238,7 @@ QString emu_settings::GetLocalizedSetting(const QString& original, emu_settings_
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case emu_settings_type::KeyboardType:
|
||||
switch (static_cast<CellKbMappingType>(index))
|
||||
{
|
||||
|
@ -800,6 +800,7 @@ void rpcn_account_edit_dialog::change_password()
|
||||
|
||||
QMessageBox::information(this, tr("Password Reset Token Sent!"), tr("The reset password token has successfully been sent!"), QMessageBox::Ok);
|
||||
}
|
||||
[[fallthrough]];
|
||||
}
|
||||
case QMessageBox::Yes:
|
||||
{
|
||||
@ -844,6 +845,7 @@ void rpcn_account_edit_dialog::change_password()
|
||||
|
||||
QMessageBox::information(this, tr("Password Successfully Changed!"), tr("Your password has been successfully changed!"), QMessageBox::Ok);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return;
|
||||
|
@ -18,6 +18,7 @@
|
||||
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#pragma GCC diagnostic ignored "-Wcast-qual"
|
||||
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||
#ifndef __clang__
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#pragma GCC diagnostic ignored "-Wduplicated-branches"
|
||||
|
Loading…
Reference in New Issue
Block a user