Enable -Winvalid-offsetof

This commit is contained in:
Nekotekina 2021-01-08 23:22:03 +03:00
parent d3a66af7d6
commit ed345e5b65
2 changed files with 1 additions and 2 deletions

View File

@ -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())
{

View File

@ -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)