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. Have a lovely day! Alex > > However, -Werror or similar is not used, so that even if "main()" > generates a warning, this should not make the test fail. So perhaps > Gentoo should fix their regexp library. > > Note: modifying regex.c has the risk to introduce issues on old systems > where it is really needed. > > -- > 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) -- <https://www.alejandro-colomar.es>
signature.asc
Description: PGP signature
