.github: enable -Werror on FreeBSD

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-11 20:40:37 +01:00
committed by Enrico Weigelt
parent 777baa343b
commit 005993d888
2 changed files with 7 additions and 1 deletions

View File

@@ -18,6 +18,12 @@ add_project_arguments('-fno-common', language: 'c')
add_project_arguments('-Wshift-negative-value', language: 'c')
add_project_arguments('-Wchar-subscripts', language: 'c')
# workaround for mesa bug causing GLsync to be typedef'ed multiple times
# this is breaking -Werror on FreeBSD
if host_machine.system() == 'freebsd'
add_project_arguments('-Wno-error=typedef-redefinition', language: 'c')
endif
add_project_link_arguments('-fvisibility=hidden', language : 'c')
# global config data -- needs to be declared early