]> git.ipfire.org Git - thirdparty/systemd.git/commit
ci: reeanble compilation test with clang -O2, disable -Wmaybe-uninitialized for old gcc 41003/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Mon, 9 Mar 2026 12:18:22 +0000 (13:18 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 18 Mar 2026 10:28:47 +0000 (10:28 +0000)
commitcfc31d9c76375bc20b468f71c4224f07a9b247f8
treecfe791b2c8e8cc7bf63808373c10ca2ab3a0f52f
parent69544de33e971feab4005543b7d4a5db1397f524
ci: reeanble compilation test with clang -O2, disable -Wmaybe-uninitialized for old gcc

In CI we get spurious failures about unitialized variables with gcc
versions older then (depending on the case) 12, 13, or 14. Let's only
try to do this check with newer gcc which returns more useful results.
At the same time, do compile with both gcc and clang at -O2, just
disable the warning.

The old logic seems to have been confused. We compile with -Wall, at
least in some cases, which includes -Wmaybe-unitialized. So if we
_don't_ want it, we need to explicitly disable it.
.github/workflows/build-test.sh