mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 13:08:10 +02:00
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 commitb1016e3be8) (cherry picked from commitdf879e6950) (cherry picked from commitfd63580c7c) (cherry picked from commit5f4dad89a9)
This commit is contained in:
parent
007f838f54
commit
2ec49dd76e
2 changed files with 2 additions and 0 deletions
|
|
@ -1126,6 +1126,7 @@ NM_COMPILER_WARNINGS(AM_CFLAGS, ${more_warnings_default})
|
||||||
|
|
||||||
for w in \
|
for w in \
|
||||||
-Wno-nonnull-compare \
|
-Wno-nonnull-compare \
|
||||||
|
-Wno-calloc-transposed-args \
|
||||||
; do
|
; do
|
||||||
NM_COMPILER_WARNING_FLAG(LIBSYSTEMD_NM_CFLAGS, "$w")
|
NM_COMPILER_WARNING_FLAG(LIBSYSTEMD_NM_CFLAGS, "$w")
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ libnm_systemd_common_cflags = [ ]
|
||||||
|
|
||||||
libnm_systemd_common_cflags += cc.get_supported_arguments([
|
libnm_systemd_common_cflags += cc.get_supported_arguments([
|
||||||
'-Wno-nonnull-compare',
|
'-Wno-nonnull-compare',
|
||||||
|
'-Wno-calloc-transposed-args',
|
||||||
])
|
])
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue