Re: [PATCH] Fix const warnings on Arch linux with the latest glibc.

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aZ7l5ebNbvNhRWlz@qinghai>
On Wed, Feb 25, 2026 at 11:43:18AM +0100, Rene Kita wrote:
>LGTM! Works in sr.ht CI with one more minor problem, which was not on my
>list.
>
>rfc2047.c: In function ‘try_block’:
>rfc2047.c:331:5: error: the comparison will always evaluate as ‘true’ for the
>pointer operand in ‘(const char *)&RFC2047Specials + 13’ must not be NULL
>[-Werror=address]
>  331 |     assert (strchr (RFC2047Specials, '?'));
>      |     ^~~~~~
>cc1: all warnings being treated as errors
>
>Where RFC2047Specials is defined as
>const char RFC2047Specials[] = "@.,;:<>[]\\\"()?/= \t";
>
>in line 68 of the same file. Is there anything special about '?' here?
>As long as no dev drops it from RFC2047Specials this assert will always
>be true and does not make sense in my eyes.
>
>I would drop it in a separate patch when sending the patch for the Arch
>manifest.

Please go ahead.  It was added 26 years ago, but I don't see the 
purpose.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmme5eUACgkQre92hIAx
a9rHtRAAradzLvNkrD2xQKOaTkuOnjMazv52dJIXmcQb5vJCQ5tj9IIdG5HyRATR
YEbOpQ8BQowd0bW3U7MKvS+yLfBL/VmgPfyqhqyoRoYeOy3Jl2WIShG1bseo351I
x8WSlbNiXl6TXpyQmeBUjlfqtTqoJOUi2lvkpM/pt25M4mWbWuimyOwbJ9LSX1cy
fWrmunlPNIptSX/pidkTDl1aCN05/KVqu/7LfF7+EXn9kuVb7VfKfyA/zQH6shvH
w4odYNOXAtmE6V0ps1lgZXDDUqln41dwz6DwVzsouOtrylHFHSmevByJ2DrlSg0R
yJAG/XocmhhJf5ii/e+QvhFtI1xhDClZr5D00S79Ux/2beXMY4UiOuD1Tah49SU9
BQOnMel/W88D213jZMtQeYtd/W46CcoxKoS4AiFRABdZvm+knfM+qzlciGdtnn3H
69IDZ2VQfrJXTwduqVH2e7PMUdfDiGd6Yv+jsRUy8sQ5lQo0iwJIFEN9BSNmldDq
e/NWM1+8u4jBQAS+JneuU5CT2hRkhJagQ9OWHffzVVCUqnruPMXTeaWKJNW81SlT
3fA3QnS3w8o3H0cB1SfZuXajq/uNwg7X16p1pITJyG8+yIOna1/i/oOhxjZuxX0C
klJWut1DzwsIiZImCRO79F3+jqAPc/PNQJGuZBdt6etcvyLh+XY=
=SgMz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.