[Interest] Qt 6.4.3 compiler warnings in QTaggedPointer

Thiago Macieira thiago.macieira at intel.com
Thu Mar 23 08:15:49 CET 2023


On Wednesday, 22 March 2023 18:19:59 HST Hamish Moffatt via Interest wrote:
> static constexpr quint8 tagBits =
> QtPrivate::qConstexprCountTrailingZeroBits(alignment);
> 
> So would you fix it with a cast, or by changing the variable type to int
> to match the function?

Either solution is fine. I was thinking of simply adding a quint8() cast around 
the result, but changing to uint also works too. The latter is a smaller 
change anyway.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230322/2dd49f7f/attachment.bin>


More information about the Interest mailing list