diff --git a/configure.ac b/configure.ac index 9dc6d8199b..01a1dacf43 100644 --- a/configure.ac +++ b/configure.ac @@ -1159,6 +1159,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 diff --git a/src/meson.build b/src/meson.build index ceeee6a028..5d85dafc21 100644 --- a/src/meson.build +++ b/src/meson.build @@ -73,6 +73,7 @@ libnm_systemd_common_cflags = [ ] libnm_systemd_common_cflags += cc.get_supported_arguments([ '-Wno-nonnull-compare', + '-Wno-calloc-transposed-args', ]) ###############################################################################