build: workaround -Wno-calloc-transposed-args warning in systemd code

Upstream systemd fixed this compiler warning. What really needs to be
done, is re-importing the upstream code.

In the meantime, suppress the warning that hits on GCC 14.

This is a temporary workaround!

See-also: fdd84270df
(cherry picked from commit b1016e3be8)
(cherry picked from commit df879e6950)
This commit is contained in:
Thomas Haller 2024-02-07 15:06:13 +01:00 committed by Beniamino Galvani
parent 24363ade54
commit fd63580c7c
2 changed files with 2 additions and 0 deletions

View file

@ -1164,6 +1164,7 @@ NM_COMPILER_WARNINGS(AM_CFLAGS, ${more_warnings_default})
for w in \
-Wno-nonnull-compare \
-Wno-calloc-transposed-args \
; do
NM_COMPILER_WARNING_FLAG(LIBSYSTEMD_NM_CFLAGS, "$w")
done

View file

@ -73,6 +73,7 @@ libnm_systemd_common_cflags = [ ]
libnm_systemd_common_cflags += cc.get_supported_arguments([
'-Wno-nonnull-compare',
'-Wno-calloc-transposed-args',
])
###############################################################################