[gdal-dev] osx compile failure
Alan Stewart
astewart at terragotech.com
Tue Dec 18 13:13:03 PST 2018
MacOS 10.12, xcode 9.2
I doing 'git clone' of master from OSGeo/gdal and running the gdal/ci/travis/osx scripts. The install.sh script terminates because of:
plmosaicdataset.cpp:1111:30: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const int' [-Werror,-Wshorten-64-to-32]
const int nMosaics = json_object_array_length(poMosaics);
~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
plmosaicdataset.cpp:1419:30: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
for(int i = 0; i < json_object_array_length(poItems); i++ )
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I could fix this with a simple cast, but I don't know GDAL policy and I wonder how many more there will be if I fix these. Is my environment incorrect, should I be setting a flag to ignore this type of error? I would think that would be in the script...
Thanks for any advice.
Alan Stewart
Senior Software Engineer
TerraGo Technologies
3200 Windy Hill Road, Suite 1550W
Atlanta, GA 30339 USA
O. +1 678.391.9615
www.terragotech.com<applewebdata://B24C0762-C7C9-4431-8518-ACC915448B89/www.terragotech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181218/78cd541d/attachment.html>
More information about the gdal-dev
mailing list