Enable -Winvalid-offsetof
This commit is contained in:
@@ -68,7 +68,7 @@ namespace asmjit
|
|||||||
c.shl(x86::eax, I + 4);
|
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())
|
if (utils::has_avx())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ else()
|
|||||||
#TODO Clean the code so these are removed
|
#TODO Clean the code so these are removed
|
||||||
add_compile_options(-Wno-unused-variable)
|
add_compile_options(-Wno-unused-variable)
|
||||||
add_compile_options(-Wno-unknown-pragmas)
|
add_compile_options(-Wno-unknown-pragmas)
|
||||||
add_compile_options(-Wno-invalid-offsetof)
|
|
||||||
add_compile_options(-Wno-unused-function)
|
add_compile_options(-Wno-unused-function)
|
||||||
add_compile_options(-Wno-attributes)
|
add_compile_options(-Wno-attributes)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user