.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

@ -233,7 +233,7 @@ jobs:
runs-on: ubuntu-latest
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MESON_ARGS: -Dprefix=/usr -Dxephyr=true -Dwerror=false -Dxcsecurity=true -Dxorg=true -Dxvfb=true -Dxnest=true -Dxfbdev=false
MESON_ARGS: -Dprefix=/usr -Dxephyr=true -Dwerror=true -Dxcsecurity=true -Dxorg=true -Dxvfb=true -Dxnest=true -Dxfbdev=false
steps:
- uses: actions/checkout@v4
- name: run in freebsd VM

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