On 2026-06-03 15:35:09 +0200, Alejandro Colomar via Mutt-dev wrote:
> Hi Vincent,
> 
> On 2026-06-03T15:08:08+0200, Vincent Lefevre wrote:
> > On 2026-06-03 13:16:51 +0200, Fabian Groffen via Mutt-dev wrote:
> > > I just want to point your attention tp https://bugs.gentoo.org/971955.
> > > 
> > > Perhaps for 2.4.0 or 2.5.0 this could be fixed, as it seems there's
> > > old-style in the codebase that Clang22 does not want to accept any more.
> > > 
> > > Copy of excerpt from the bug:
> > > 
> > > clang -std=gnu23 -DPKGDATADIR=\"/usr/share/mutt\" 
> > > -DSYSCONFDIR=\"/etc/mutt\" -DBINDIR=\"/usr/bin\" 
> > > -DMUTTLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H=1 
> > > -DPREFIX=\"/usr/..\" -I.  -I. -I. -I./imap      -Wall -pedantic 
> > > -Wno-long-long -O2 -c -o regex.o regex.c
> > 
> > This is regex.c, which is enabled only when "your system's regexp
> > library is completely broken" (configure.ac). But... the cause may
> > be that the configure test uses
> > 
> >   int main()
> > 
> > rather than
> > 
> >   int main(void)
> 
> So, using main(void) would fix this?  That would be easy to do, and
> would be good anyway.

This was not the issue here, but for instance,

  ./configure CFLAGS="-std=c17 -Werror=old-style-definition"

with GCC would select the bundled regexp and yield the errors.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to