Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Dec 2022 15:36:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 268208] mail/mutt: fix build with clang 15
Message-ID:  <bug-268208-7788-kliaVpbid7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268208-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268208-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268208

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=3Dde5264ca78f41c04c1753ca94d94912=
1b53b9f1d

commit de5264ca78f41c04c1753ca94d949121b53b9f1d
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-12-06 20:53:39 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-12-07 15:34:04 +0000

    mail/mutt: fix build with clang 15

    During an exp-run for llvm 15 (see bug 265425), it turned out that
    mail/mutt failed to build with clang (and lld) 15:

      --- init.o ---
      In file included from init.c:43:
      ./init.h:3166:37: error: incompatible integer to pointer conversion
initializing 'void *' with an expression of type 'int' [-Wint-conversion]
        { "quote_empty",      DT_BOOL, R_NONE, OPTQUOTEEMPTY, 1 },
                                               ^~~~~~~~~~~~~
      ./init.h:3166:37: warning: suggest braces around initialization of
subobject [-Wmissing-braces]
        { "quote_empty",      DT_BOOL, R_NONE, OPTQUOTEEMPTY, 1 },
                                               ^~~~~~~~~~~~~
                                               {            }
      ./init.h:3166:52: error: incompatible integer to pointer conversion
initializing 'void *' with an expression of type 'int' [-Wint-conversion]
        { "quote_empty",      DT_BOOL, R_NONE, OPTQUOTEEMPTY, 1 },
                                                              ^
      ./init.h:3166:52: warning: suggest braces around initialization of
subobject [-Wmissing-braces]
        { "quote_empty",      DT_BOOL, R_NONE, OPTQUOTEEMPTY, 1 },
                                                              ^

    This is because the QUOTE_PATCH option is on by default, and that quote
    patch does not properly initialize the union members for the MuttVars
    variable.

    PR:             268208
    Approved by:    dereks@lifeofadishwasher.com (maintainer)
    MFH:            2022Q4

 mail/mutt/Makefile                      |  1 +
 mail/mutt/files/extra-patch-quote (new) | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268208-7788-kliaVpbid7>