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>
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev