From 3cb9065305368a9219004905687113687d44785f Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Mon, 11 Mar 2024 15:28:06 +0100 Subject: [PATCH] Revert "build: workaround -Wno-calloc-transposed-args warning in systemd code" Upstream systemd code was re-imported and therefore the issue is now solved. Enable the warning again. This reverts commit b1016e3be80b1e610b84eba527c95bbb9c5971f4. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1886 --- configure.ac | 1 - src/meson.build | 1 - 2 files changed, 2 deletions(-) diff --git a/configure.ac b/configure.ac index 135b2d981f..2c71be1820 100644 --- a/configure.ac +++ b/configure.ac @@ -1151,7 +1151,6 @@ 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 diff --git a/src/meson.build b/src/meson.build index 5d85dafc21..ceeee6a028 100644 --- a/src/meson.build +++ b/src/meson.build @@ -73,7 +73,6 @@ libnm_systemd_common_cflags = [ ] libnm_systemd_common_cflags += cc.get_supported_arguments([ '-Wno-nonnull-compare', - '-Wno-calloc-transposed-args', ]) ###############################################################################