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

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aZ713vJbe7Cg2Msh@qinghai>
On Wed, Feb 25, 2026 at 02:10:18PM +0100, Rene Kita wrote:
>On Wed, Feb 25, 2026 at 01:13:53PM +0100, Alejandro Colomar via Mutt-dev wrote:
>> I've now checked the code, and we don't write to it, so the solution
>> would be to declare 'tz' to be const, I think.
>>
>> 	-struct tz_t *tz;
>> 	+const struct tz_t *tz;
>
>I can confirm that this builds without warnings.

Thanks!  I will push my revised patch along with your assert removal in
just a moment.

-- 
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-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmme9d4ACgkQre92hIAx
a9o53hAA0nifJLQzc2LH4WzZEjCzK2J7EOoDlnwDU8SUkqALEy42dDWO8yZsuP9R
lIozEwDYai4nA7aj6AHac/n/OZNhxIZuURY/4Q6GSl1VKkakgxRasNyJZPPgIF0i
M+M2ibQY9YQpLXJ67c21xuWG5AMJu3mf9C/12I9FhwqT9AoEEu/d8rlMtcnFSIpT
dBmJxu0bf6p6DUPl1gZPZM0HDqhf1MZf00lo3laYE4Yi8bEbVGf4scBMJuqxUMR6
M78CSgC+BmtU9VX/Xif1Os0YKkUXD5Ps6G5JT6o4Z/q/yQTtnAmrl9mxUoplIIdZ
D/ATtUdhEeg4kgKz79uq01AL95MaFxfOowWXm0eFySzWkqvwQsOGfUjyRQ/XIvsm
EJ/Np86OYN7suSGesGI+WjUOi72TZuG7sw6r2pK3knoJfac1PjVfxSQji1M5PPDy
4aWaSU/vDGGYKBqK+cE2cy889AsL66vJOnHeI2TT6LMqyj97CevmKZoo5ywF9UJL
ZyRPkZTkps7BlADEYT+oE8W2Rcm9jFODfQZuE2wr2WvZ6ObJJ8n6hK8kwWv48Pkv
KZ2hfY/NsmcLA5zyNXwqKihLpQvXykijDiGAAG6sF2mft2dOYnzHKhuIBLJkkAlJ
XjOabhEQb/kVXzMPM6KS2TdNPUGsEQE2vzkTFWUyHOPoIGHooFo=
=8fXC
-----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.