[Interest] iOS release build uncount issues - implicit conversion loses integer precision

Kristoffersen, Even (NO14) Even.Kristoffersen at Honeywell.com
Mon Jun 19 16:09:56 CEST 2017


On 64 bit systems that piece of code does pointer1 – pointer2, which would be a 64 bit value, then implicitly doing a narrowing cast since the function returns an int (32 bit value on your arch).

Anyway, fastest fix is probably to just disable the shorten-64-to-32 warning in the release kit or compile for a 32 bit target.


-Even

From: Interest [mailto:interest-bounces+even.kristoffersen=honeywell.com at qt-project.org] On Behalf Of ekke
Sent: 19. juni 2017 15:47
To: interest at qt-project.org; qt-creator at qt-project.org
Subject: [Interest] iOS release build uncount issues - implicit conversion loses integer precision


debug build and run works well

but release build I'm getting thousands of issues like this one:

/daten/_qt_sdks/sdk_590/5.9/ios/include/QtCore/qvector.h:841: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
                return n - d->begin();
                ~~~~~~ ~~^~~~~~~~~~~~

any idea what could be wrong ?

  *   Qt 5.9
  *   Xcode 8.3.3
  *   iOS device 10.3.2
  *   macOS 10.12.5
  *   Creator 4.3

thx

ekke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170619/111d3730/attachment.html>


More information about the Interest mailing list