diff --git a/configure.ac b/configure.ac index 3d7c5b37e7..6b6cb794b2 100644 --- a/configure.ac +++ b/configure.ac @@ -1126,6 +1126,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 322c17c281..2bc6f63203 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', ]) ###############################################################################