From 1259fdc2e356207302202fa69e15140649213c51 Mon Sep 17 00:00:00 2001
From: Max Kellermann <mk@cm4all.com>
Date: Mon, 6 Nov 2023 17:16:01 +0100
Subject: [PATCH] test/meson.build: re-enable various compiler warnings with
 GTest

---
 test/meson.build | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/test/meson.build b/test/meson.build
index b717cc662..f831afa6c 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -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')