mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
build: avoid some compile checks on clang 12
This commit is contained in:
@ -114,7 +114,6 @@ test_c_args = [
|
|||||||
['-Werror=format-security', '-Werror=format=2' ],
|
['-Werror=format-security', '-Werror=format=2' ],
|
||||||
'-Werror=empty-body',
|
'-Werror=empty-body',
|
||||||
'-Werror=implicit-function-declaration',
|
'-Werror=implicit-function-declaration',
|
||||||
'-Werror=incompatible-pointer-types',
|
|
||||||
'-Werror=pointer-arith',
|
'-Werror=pointer-arith',
|
||||||
'-Werror=init-self',
|
'-Werror=init-self',
|
||||||
'-Werror=int-conversion',
|
'-Werror=int-conversion',
|
||||||
@ -127,6 +126,14 @@ test_c_args = [
|
|||||||
'-Werror=strict-prototypes',
|
'-Werror=strict-prototypes',
|
||||||
'-Werror=undef',
|
'-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'
|
if get_option('buildtype') != 'plain'
|
||||||
test_c_args += '-fstack-protector-strong'
|
test_c_args += '-fstack-protector-strong'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user