meson.build: disable suggest-attribute=format warning on mingw32

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-12-12 13:34:48 +01:00 committed by Enrico Weigelt
parent 8e872d69be
commit 1e66e2e02d

View File

@ -24,6 +24,12 @@ if host_machine.system() == 'freebsd'
add_project_arguments('-Wno-error=typedef-redefinition', language: 'c')
endif
# workaround for mingw32 bug, which is demanding gnu_print attribute
# while not actually understanding it
if host_machine.system() == 'windows'
add_project_arguments('-Wno-error=suggest-attribute=format', language: 'c')
endif
add_project_link_arguments('-fvisibility=hidden', language : 'c')
# global config data -- needs to be declared early