From: Timo Sirainen Date: Tue, 14 Oct 2025 09:37:05 +0000 (+0300) Subject: m4/dovecot.m4: Use -Wno-default-const-init-field-unsafe if it exists X-Git-Tag: 2.4.2~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f8b74a9ab1b9ea4676cf15490538376d3c7402d;p=thirdparty%2Fdovecot%2Fcore.git m4/dovecot.m4: Use -Wno-default-const-init-field-unsafe if it exists This causes unnecessary warnings about buffer_t. --- diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 index 25d922ccab..3e1aadf004 100644 --- a/m4/dovecot.m4 +++ b/m4/dovecot.m4 @@ -521,6 +521,9 @@ AC_DEFUN([CC_CLANG],[ AC_MSG_CHECKING([whether $CC is clang 3.3+]) AS_IF([$CC -dM -E -x c /dev/null | $GREP __clang__ > /dev/null 2>&1], [ AS_VAR_SET([have_clang], [yes]) + # buffer_t usage triggers this warning + gl_WARN_ADD([-Wno-default-const-init-field-unsafe]) + AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS" ], [ AS_VAR_SET([have_clang], [no]) ])