Mutt compilation using Clang 22
Fabian Groffen via Mutt-dev <[email protected]> Wed, 3 Jun 2026 13:16:51 +0200
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
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
regex.c:359:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
359 | #define false 0
| ^
regex.c:360:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
360 | #define true 1
| ^
regex.c:529:17: error: unknown type name 'dest'
529 | extract_number (dest, source)
| ^
regex.c:529:23: error: unknown type name 'source'
529 | extract_number (dest, source)
| ^
regex.c:529:30: error: expected ';' after top level declarator
529 | extract_number (dest, source)
| ^
| ;
regex.c:532:1: error: expected identifier or '('
532 | {
| ^
regex.c:965:16: error: unknown type name 'syntax'
965 | re_set_syntax (syntax)
| ^
regex.c:965:23: error: expected ';' after top level declarator
965 | re_set_syntax (syntax)
| ^
| ;
regex.c:967:1: error: expected identifier or '('
967 | {
| ^
regex.c:1793:16: error: unknown type name 'pattern'
1793 | regex_compile (pattern, size, syntax, bufp)
| ^
regex.c:1793:25: error: unknown type name 'size'
1793 | regex_compile (pattern, size, syntax, bufp)
| ^
regex.c:1793:31: error: unknown type name 'syntax'
1793 | regex_compile (pattern, size, syntax, bufp)
| ^
regex.c:1793:39: error: unknown type name 'bufp'
1793 | regex_compile (pattern, size, syntax, bufp)
| ^
regex.c:1793:44: error: expected ';' after top level declarator
1793 | regex_compile (pattern, size, syntax, bufp)
| ^
| ;
regex.c:1798:1: error: expected identifier or '('
1798 | {
| ^
regex.c:2898:12: error: unknown type name 'op'
2898 | store_op1 (op, loc, arg)
| ^
regex.c:2898:16: error: unknown type name 'loc'
2898 | store_op1 (op, loc, arg)
| ^
regex.c:2898:21: error: unknown type name 'arg'
2898 | store_op1 (op, loc, arg)
| ^
regex.c:2898:25: error: expected ';' after top level declarator
2898 | store_op1 (op, loc, arg)
| ^
| ;
regex.c:2902:1: error: expected identifier or '('
2902 | {
| ^
regex.c:2911:12: error: unknown type name 'op'
2911 | store_op2 (op, loc, arg1, arg2)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Thanks,
Fabian
signature.asc
(application/pgp-signature, 265 B)
-----BEGIN PGP SIGNATURE----- iJEEABYKADkWIQTVZ7uEvqwb4Fv6o7r1Tg7q2DMGLwUCaiANIxsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwwLDMACgkQ9U4O6tgzBi+4RAEAm7Nu/gfdDy8d3lf37SK6 E2ce5JesTEa3mryVNLK+ML8BALPq//Y4Re7+r7CFmM8z7UFKlpfczqv+m1l5NX74 A9UB =YSAt -----END PGP SIGNATURE-----