test/meson.build: re-enable various compiler warnings with GTest

This commit is contained in:
Max Kellermann 2023-11-06 17:16:01 +01:00 committed by Max Kellermann
parent a564b7eedb
commit 1259fdc2e3
1 changed files with 0 additions and 25 deletions

View File

@ -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_dep = declare_dependency(
dependencies: [gtest_main_dep],
compile_args: gtest_compile_args,
)
subdir('util')