Comment 1 for bug 1988710

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: FTBFS with GCC 12

Hmm,
0x48002002 < 0xFFFFFFFF

Is that a false positive or am I looking at the wrong target for this warning.
There are various reports about this and so far most I found where different kinds of false positives.
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101977
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104657
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578

If you consider this a false positive at the end of your check consider for now doing a wrapper with just this warning disabled on those two assignments:

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
        code
#pragma GCC diagnostic pop