]> git.mdlowis.com Git - proto/labwc.git/commit
CI: fix broken FreeBSD CI by setting -Dlibsfdo:b_ndebug=false
authorJohan Malm <jgm323@gmail.com>
Fri, 26 Sep 2025 16:52:13 +0000 (17:52 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 26 Sep 2025 17:06:21 +0000 (19:06 +0200)
commitc9030dcc5b321abb2afb3a38d00b795081c8fe4d
treefc2d6bef96feddcf171dd696c4223e6acf8ca95d
parent26bd02d45730ccfa99bccb786a9a07e0aa32fd04
CI: fix broken FreeBSD CI by setting -Dlibsfdo:b_ndebug=false

...because with with

    meson setup build -Dbuildtype=release -Db_ndebug=true \
        --werror --force-fallback-for=libsfdo

we get the following warning:

    In file included from ../subprojects/libsfdo/common/dirs.c:5:
    ../subprojects/libsfdo/include/common/membuild.h: In function ‘sfdo_membuild_validate’:
    ../subprojects/libsfdo/include/common/membuild.h:29:65: error: unused parameter ‘membuild’ [-Werror=unused-parameter]
       29 | static inline void sfdo_membuild_validate(struct sfdo_membuild *membuild) {

...because `sfdo_membuild_validate()` contains nothing but an `assert()`
and that therefore results in an `unused-parameter` warning with `NDEBUG`.

https://gitlab.freedesktop.org/vyivel/libsfdo/-/blob/main/include/common/membuild.h?ref_type=heads#L30
.github/workflows/build.yml