diff --git a/rpcs3/Emu/Cell/SPUInterpreter.cpp b/rpcs3/Emu/Cell/SPUInterpreter.cpp index e4e701b440b2..8dd98ad028e4 100644 --- a/rpcs3/Emu/Cell/SPUInterpreter.cpp +++ b/rpcs3/Emu/Cell/SPUInterpreter.cpp @@ -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()) { diff --git a/rpcs3/cmake_modules/ConfigureCompiler.cmake b/rpcs3/cmake_modules/ConfigureCompiler.cmake index e3c6366eedb4..fb5463c06d3e 100644 --- a/rpcs3/cmake_modules/ConfigureCompiler.cmake +++ b/rpcs3/cmake_modules/ConfigureCompiler.cmake @@ -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)