lib/fmt/meson.build: suppress -Warray-bounds with GCC 13
This commit is contained in:
parent
323517753d
commit
fb151c8662
|
@ -1,5 +1,14 @@
|
||||||
libfmt = dependency('fmt', version: '>= 9', fallback: ['fmt', 'fmt_dep'])
|
libfmt = dependency('fmt', version: '>= 9', fallback: ['fmt', 'fmt_dep'])
|
||||||
|
|
||||||
|
|
||||||
|
if compiler.get_id() == 'gcc' and compiler.version().version_compare('>=13') and compiler.version().version_compare('<14')
|
||||||
|
libfmt = declare_dependency(
|
||||||
|
dependencies: libfmt,
|
||||||
|
# suppress bogus GCC 13 warning: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109717
|
||||||
|
compile_args: ['-Wno-array-bounds'],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
fmt = static_library(
|
fmt = static_library(
|
||||||
'fmt',
|
'fmt',
|
||||||
'ExceptionFormatter.cxx',
|
'ExceptionFormatter.cxx',
|
||||||
|
|
Loading…
Reference in New Issue