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....@qt-project.org] On Behalf Of ekke Sent: 19. juni 2017 15:47 To: interest@qt-project.org; qt-crea...@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
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest