Silence gcc 15.2 false positive warning


The compiler sees the static const char _empty in QByteArray, and
does not know that the length check rules out that option, causing:
qtbase/src/corelib/global/qendian.h:57:13: error: array subscript
‘unsigned int[0]’ is partly outside array bounds of ‘const char [1]’

Change-Id: Iff99f751e4f5100fad86bf813c438266f21fa79b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit68ff5a3d98e3ca698288c7b0e4b152f3ee779782
parent581f0c9bfed5048075ee298a92803666dc71a505
authorPaul Olav Tvete <paul.tvete@qt.io>
committerPaul Olav Tvete <paul.tvete@qt.io>
commit timeThu, 22 Oct 2026 07:25:09 +0000