meson.build: suppress bogus clang 14 warning on libfmt headers

This commit is contained in:
Max Kellermann 2022-10-14 22:54:33 +02:00
parent 0c7163b9db
commit 31db04a3ca
1 changed files with 8 additions and 0 deletions

View File

@ -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',