Compilation warning
Posted: Mon May 09 2022 6:05 pm
All,
I didn't dig into the code, but this warning scares me.
I just pulled down this morning to build in a new VM.
Seems to pop up a lot in the compilation listing.
I didn't dig into the code, but this warning scares me.
I just pulled down this morning to build in a new VM.
Code: Select all
/home/developer/Projects/cs_build/include/QtCore/qarraydata.h:103:8: note: at offset [26, 50] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
/home/developer/Projects/cs_build/include/QtCore/qarraydata.h:103:8: note: at offset [26, 50] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
/home/developer/Projects/cs_build/include/QtCore/qarraydata.h:103:8: note: at offset [26, 50] into destination object ‘QTypedArrayData<char>::<anonymous>’ of size 24
In file included from /home/developer/Projects/copperspice/src/gui/text/qfontsubset.cpp:27:
In function ‘void qbswap_helper(const uchar*, uchar*, int)’,
inlined from ‘void qbswap(T, uchar*) [with T = short unsigned int]’ at /home/developer/Projects/cs_build/include/QtCore/qendian.h:45:17,
inlined from ‘void qToBigEndian(T, uchar*) [with T = short unsigned int]’ at /home/developer/Projects/cs_build/include/QtCore/qendian.h:297:13,
inlined from ‘QTtfStream& QTtfStream::operator<<(quint16)’ at /home/developer/Projects/copperspice/src/gui/text/qfontsubset.cpp:338:19,
inlined from ‘QTtfTable generateMaxp(const qttf_maxp_table&)’ at /home/developer/Projects/copperspice/src/gui/text/qfontsubset.cpp:644:19,
inlined from ‘QByteArray QFontSubset::toTruetype() const’ at /home/developer/Projects/copperspice/src/gui/text/qfontsubset.cpp:1308:30:
/home/developer/Projects/cs_build/include/QtCore/qendian.h:39:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
39 | dest[i] = source[size - 1 - i];