[Development] Warnign when building qtbase: -Walloc-size-larger-than

Lisandro Damián Nicanor Pérez Meyer perezmeyer at gmail.com
Mon Feb 6 20:21:13 CET 2023

When building qtbase 6.4.2 on Debian I see:

In member function ‘__ct ’,
    inlined from ‘detached’ at ./obj-x86_64-linux-gnu/include/QtCore/../../../src/corelib/tools/qhash.h:575:20,
    inlined from ‘detach’ at ./obj-x86_64-linux-gnu/include/QtCore/../../../src/corelib/tools/qhash.h:1501:75:
./obj-x86_64-linux-gnu/include/QtCore/../../../src/corelib/tools/qhash.h:559:17: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
/usr/include/c++/12/new: In member function ‘detach’:
/usr/include/c++/12/new:128:26: note: in a call to allocation function ‘operator new []’ declared here
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)

Is this something to be worried about?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230206/93595595/attachment.sig>

More information about the Development mailing list