Is it time to take the middle-end stringop/array warnings out of -Wall?

Sam James sam@gentoo.org
Thu May 21 16:06:35 GMT 2026


Arsen Arsenović <aarsenovic@baylibre.com> writes:

> Joseph Myers <josmyers@redhat.com> writes:
>
>> The point is that if using -Wextra, you should expect some warnings
>> that are "hard to avoid ... no simple way to modify the code to
>> suppress the warning" (whereas such warnings are outside the
>> documented scope of -Wall).
>
> Yes, I agree.
>
> I'm just saying that I think that, beyond just moving into -Wextra, the
> wording needs to be made less certain ("there is" -> "there may be" or
> so).

So, something like:
1) move to -Wextra;
2) change phrasing;
3) add diagnostic group -Wmiddle-end (name pending);
4) drop from -Wextra now you can conveniently use them via the group.

then?

sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 418 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20260521/faecfe8f/attachment-0001.sig>


More information about the Gcc mailing list