Re: Mutt compilation using Clang 22
Alejandro Colomar via Mutt-dev <[email protected]> Wed, 3 Jun 2026 15:35:09 +0200
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <aiAtXaRgcM9HGhN5@devuan> |
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
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmogLYYACgkQ64mZXMKQ wqkKfw//TZmbFxEzWnqIG81C2BwjlT+pdPxre8KKYWsRNtd7htItxTOws9OzgJt2 WqVZoPZhADqgXWmmYb+VNy4SNveS8EJ61FD6sv3dhqsVjRNCDZnlUBZutGsK7xSB +QBkexonZarR1UeNQwtyZQiMsAsOSC/DjTGvACapXVz8dchSBMfoUug5I6aA6cZh 61QiICu47KFPD3gYWWBAPTkNCNa7NpjQHaMgCHA4s4eJIrUiRP1ZJiHz9riMIKae O2BHY8nwHxIdgMWHCd+VroGPEfh+f+ruILODvY3AiBacgVsgzmWOgKlkAjFjndtl fvyTU/xnAAP39Iv0AHu5mucr25sTZdOLuzRhXHA3Cp7TIJKijFtE+Rf05Iwufj+r hvrEaHK0/0hHYPIKPS4B2NlrX7YC7/Hvt/AGh4/MUJ5DhI2a7s9X3Q7YajWAxRCU wmjf+0odH7z7bcsTfOAZOd9a/nTE4h0z22IoqQtleNL/Jv40s4hdW4rc+IsQZJxt ca9NoMBEhShNmlftOr01G5qU0T51p0Gj51wIsvkH37HCFMM45and/h75VlUFeb30 QfV96ARPSGQt/A4firnwcPZr0BvHaffHdRVDXJJ8QvboVfN1r0nPPxMTPXflzpBb mJslQA/VL6ky89oVJ0nQT+bw0LoM/ak1RN0FpmkFD6j5alv1HrY= =KAXa -----END PGP SIGNATURE-----