Skip to content

Commit

Permalink
Enable -Winvalid-offsetof
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed Jan 10, 2021
1 parent c1b83ea commit 3038162
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion rpcs3/Emu/Cell/SPUInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace asmjit
c.shl(x86::eax, I + 4);
}

const auto ptr = x86::oword_ptr(spu, x86::rax, 0, offsetof(spu_thread, gpr));
const auto ptr = x86::oword_ptr(spu, x86::rax, 0, ::offset32(&spu_thread::gpr));

if (utils::has_avx())
{
Expand Down
1 change: 0 additions & 1 deletion rpcs3/cmake_modules/ConfigureCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ else()
#TODO Clean the code so these are removed
add_compile_options(-Wno-unused-variable)
add_compile_options(-Wno-unknown-pragmas)
add_compile_options(-Wno-invalid-offsetof)
add_compile_options(-Wno-unused-function)
add_compile_options(-Wno-attributes)

Expand Down

0 comments on commit 3038162

Please sign in to comment.