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

2023-02-06 Thread Thiago Macieira
On Monday, 6 February 2023 15:15:36 PST Lisandro Damián Nicanor Pérez Meyer wrote: > > Actually, maxNumBuckets is wrong, allowing bucketsForCapacity to overflow. > > But in practice this will only affect you after the QHash has grown to > > more than half the virtual memory size (which can only ha

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

2023-02-06 Thread Lisandro Damián Nicanor Pérez Meyer
On Mon, 6 Feb 2023 at 19:28, Thiago Macieira wrote: > > On Monday, 6 February 2023 11:37:07 PST Thiago Macieira wrote: > > On Monday, 6 February 2023 11:21:13 PST Lisandro Damián Nicanor Pérez Meyer [snip] > > No. It's a false positive. The value that GCC is reporting is also > > impossible: > > >

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

2023-02-06 Thread Thiago Macieira
On Monday, 6 February 2023 11:37:07 PST Thiago Macieira wrote: > On Monday, 6 February 2023 11:21:13 PST Lisandro Damián Nicanor Pérez Meyer > > wrote: > > When building qtbase 6.4.2 on Debian I see: > > > > In member function ‘__ct ’, > > > > inlined from ‘detached’ at > > > > ./obj-x86_64

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

2023-02-06 Thread Thiago Macieira
On Monday, 6 February 2023 11:21:13 PST Lisandro Damián Nicanor Pérez Meyer wrote: > 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:57 > 5:20, inlined from ‘det

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

2023-02-06 Thread Lisandro Damián Nicanor Pérez Meyer
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: .