build: avoid some compile checks on clang 12

This commit is contained in:
Christian Hergert
2020-11-16 14:04:38 -08:00
parent f18fbe5ae8
commit 621fd70e81

View File

@ -114,7 +114,6 @@ test_c_args = [
['-Werror=format-security', '-Werror=format=2' ],
'-Werror=empty-body',
'-Werror=implicit-function-declaration',
'-Werror=incompatible-pointer-types',
'-Werror=pointer-arith',
'-Werror=init-self',
'-Werror=int-conversion',
@ -127,6 +126,14 @@ test_c_args = [
'-Werror=strict-prototypes',
'-Werror=undef',
]
# Until GLib is fixed with regards to volatile type registration
if cc.get_id() == 'clang'
test_c_args += ['-Wno-incompatible-pointer-types']
else
test_c_args += ['-Werror=incompatible-pointer-types']
endif
if get_option('buildtype') != 'plain'
test_c_args += '-fstack-protector-strong'
endif