Question about -Wstrict-overflow=2
Andrew Haley
aph@redhat.com
Sat Mar 6 11:23:33 GMT 2021
On 3/6/21 10:37 AM, Alexander Motzkau via Gcc-help wrote:
> So the question is what this warning is really about and how to get rid of
> it?
The compiler is telling you that it's assuming that expbuf + 120
does not wrap around. There's nothing really mysterious about it.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the Gcc-help
mailing list