test/meson.build: re-enable various compiler warnings with GTest
This commit is contained in:
parent
a564b7eedb
commit
1259fdc2e3
|
@ -1,31 +1,6 @@
|
||||||
gtest_compile_args = [
|
|
||||||
'-Wno-undef',
|
|
||||||
]
|
|
||||||
|
|
||||||
if compiler.get_id() == 'gcc'
|
|
||||||
gtest_compile_args += [
|
|
||||||
'-Wno-suggest-attribute=format',
|
|
||||||
'-Wno-suggest-attribute=noreturn',
|
|
||||||
'-Wno-missing-declarations',
|
|
||||||
]
|
|
||||||
endif
|
|
||||||
|
|
||||||
if compiler.get_id() == 'clang' and compiler.version().version_compare('>=9')
|
|
||||||
gtest_compile_args += [
|
|
||||||
# work around clang warning caused by GTest's wrong "-lpthread"
|
|
||||||
# compiler flag
|
|
||||||
'-Wno-unused-command-line-argument',
|
|
||||||
|
|
||||||
# work around "error: 'ScopedTrace' was marked unused but was
|
|
||||||
# used"
|
|
||||||
'-Wno-used-but-marked-unused',
|
|
||||||
]
|
|
||||||
endif
|
|
||||||
|
|
||||||
gtest_main_dep = dependency('gtest', main: true, fallback: ['gtest', 'gtest_main_dep'])
|
gtest_main_dep = dependency('gtest', main: true, fallback: ['gtest', 'gtest_main_dep'])
|
||||||
gtest_dep = declare_dependency(
|
gtest_dep = declare_dependency(
|
||||||
dependencies: [gtest_main_dep],
|
dependencies: [gtest_main_dep],
|
||||||
compile_args: gtest_compile_args,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
subdir('util')
|
subdir('util')
|
||||||
|
|
Loading…
Reference in New Issue