On Sun, Mar 29, 2026 at 12:07:31PM +0200, Rene Kita wrote:
I had some time and wanted to see how mutt compiles with more warnings
enabled, i.e. CFLAGS='-Wall -Wcast-qual -Werror
-Wimplicit-function-declaration -Wimplicit-int -Wnull-dereference
-Wold-style-definition -Wredundant-decls -Wstrict-prototypes
-Wstring-compare -Wtype-limits -Wuninitialized -Wunused'

Turns out there's a lot the compiler complains about, especially when it
comes to some const usage. The following patches are a result of this
experiment and are far from a complete fix.

This series depends on the proposed reformatting from Kevin. It's
untested besides compilation and CI.

These look good. Thanks for trying out those flags, they caught quite a few mistakes.

I'll push these up after a couple days, to give others a chance to at least glance at the reformatting patches if they want.

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