From 31db04a3ca6525fe94eb72191425e3631a2f3e92 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 14 Oct 2022 22:54:33 +0200 Subject: [PATCH] meson.build: suppress bogus clang 14 warning on libfmt headers --- meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meson.build b/meson.build index a7ab0fa16..e02b06971 100644 --- a/meson.build +++ b/meson.build @@ -251,6 +251,14 @@ endif fmt_dep = dependency('fmt', fallback: ['fmt', 'fmt_dep']) +if compiler.get_id() == 'clang' and compiler.version().version_compare('<15') + fmt_dep = declare_dependency( + dependencies: fmt_dep, + # suppress bogus clang 14 warning (the version in Android NDK r25b) + compile_args: ['-Wno-unused-local-typedef'], + ) +endif + log = static_library( 'log', 'src/Log.cxx',