On Wed, Feb 25, 2026 at 02:19:31PM +0100, Rene Kita wrote:
This was actually incorrect. There are still two other problems
concerning const. I was in a hurry, sorry for that.

util.c: In function ‘imap_parse_path’:
util.c:368:7: error: assignment discards ‘const’ qualifier from pointer target
type [-Werror=discarded-qualifiers]
 368 |     c = strchr (path, '}');
     |       ^
util.c: In function ‘imap_get_literal_count’:
util.c:614:20: error: assignment discards ‘const’ qualifier from pointer target
type [-Werror=discarded-qualifiers]
 614 |   if (!buf || !(pc = strchr (buf, '{')))
     |                    ^

This is in imap/util.c and needs:
./configure --enable-gpgme --enable-pop --enable-imap \
 --enable-smtp --enable-hcache --enable-sidebar \
 --without-included-gettext --with-mailpath=/var/spool/mail \
 --with-curses --with-ssl --with-sasl --with-idn2

From I quick look I think in the first case we don't need to write to
*c, but making it const gives another error when passing it to
url_parse_ciss.

Okay, I will take a look at this more closely tomorrow.  Thanks Rene!

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to