Is it time to take the middle-end stringop/array warnings out of -Wall?
Martin Uecker
muecker@gwdg.de
Wed May 20 21:09:58 GMT 2026
Am Mittwoch, dem 20.05.2026 um 19:50 +0200 schrieb Eric Botcazou:
> > I'd tend to prefer moving to -Wextra. Though I suspect they'll bitrot
> > over time in there :( I've seen them find real issues, but I think it's
> > reasonably clear that they're causing more pain than they're solving.
>
> FWIW that's also my experience.
I sometimes find them useful (in C, C++ might be affected differently).
I also observe that people invent entirely new languages which are much
stricter and which fail hard for things which would be considered
false positives, so keeping them at least in -Wextra would seem
appropriate to me.
Martin
More information about the Gcc
mailing list