* installing *source* package ‘rlas’ ... ** this is package ‘rlas’ version ‘1.8.3’ ** package ‘rlas’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.6.3.2)’ using SDK: ‘MacOSX26.2.sdk’ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_txt.cpp -o LASlib/lasreader_txt.o In file included from LASlib/lasreader_txt.cpp:31: In file included from LASlib/lasreader_txt.hpp:41: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_txt.cpp:31: In file included from LASlib/lasreader_txt.hpp:41: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_txt.cpp:31: In file included from LASlib/lasreader_txt.hpp:41: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreader_txt.cpp:1866:19: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1866 | point.rgb[0] = hex_value; | ~ ^~~~~~~~~ LASlib/lasreader_txt.cpp:1869:19: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1869 | point.rgb[1] = hex_value; | ~ ^~~~~~~~~ LASlib/lasreader_txt.cpp:1872:19: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1872 | point.rgb[2] = hex_value; | ~ ^~~~~~~~~ LASlib/lasreader_txt.cpp:2135:6: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2135 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_txt.cpp:2139:6: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2139 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_txt.cpp:2143:6: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2143 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_txt.cpp:2184:6: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2184 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_txt.cpp:2188:6: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2188 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_txt.cpp:2192:6: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2192 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ 17 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/fopen_compressed.cpp -o LASlib/fopen_compressed.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswriter_las.cpp -o LASlib/laswriter_las.o In file included from LASlib/laswriter_las.cpp:31: In file included from LASlib/laswriter_las.hpp:44: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_las.cpp:31: In file included from LASlib/laswriter_las.hpp:44: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_las.cpp:31: In file included from LASlib/laswriter_las.hpp:44: In file included from LASlib/laswriter.hpp:48: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/laswriter_las.cpp:200:49: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'unsigned short' [-Wimplicit-int-conversion] 200 | laszip->setup(point.num_items, point.items, compressor); | ~~~~~ ^~~~~~~~~~ LASlib/laswriter_las.cpp:204:57: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'unsigned short' [-Wimplicit-int-conversion] 204 | else if (requested_version) laszip->request_version(requested_version); | ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~ LASlib/laswriter_las.cpp:599:38: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 599 | U16 record_length_after_header = laszip_vlr_data_size; | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~ 11 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreaderbuffered.cpp -o LASlib/lasreaderbuffered.o In file included from LASlib/lasreaderbuffered.cpp:31: In file included from LASlib/lasreaderbuffered.hpp:41: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreaderbuffered.cpp:31: In file included from LASlib/lasreaderbuffered.hpp:41: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreaderbuffered.cpp:31: In file included from LASlib/lasreaderbuffered.hpp:41: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreadermerged.cpp -o LASlib/lasreadermerged.o In file included from LASlib/lasreadermerged.cpp:31: In file included from LASlib/lasreadermerged.hpp:39: In file included from LASlib/lasreader_las.hpp:46: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreadermerged.cpp:31: In file included from LASlib/lasreadermerged.hpp:39: In file included from LASlib/lasreader_las.hpp:46: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreadermerged.cpp:31: In file included from LASlib/lasreadermerged.hpp:39: In file included from LASlib/lasreader_las.hpp:46: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreadermerged.cpp:973:9: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 973 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreadermerged.cpp:978:9: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 978 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreadermerged.cpp:983:9: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 983 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreadermerged.cpp:1655:68: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1655 | transform->setPointSource(file_names_ID[file_name_current] + 1); | ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ LASlib/lasreadermerged.cpp:1659:53: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1659 | transform->setPointSource(file_name_current + files_are_flightlines); | ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 13 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswriter_wrl.cpp -o LASlib/laswriter_wrl.o In file included from LASlib/laswriter_wrl.cpp:31: In file included from LASlib/laswriter_wrl.hpp:34: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_wrl.cpp:31: In file included from LASlib/laswriter_wrl.hpp:34: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_wrl.cpp:31: In file included from LASlib/laswriter_wrl.hpp:34: In file included from LASlib/laswriter.hpp:48: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_shp.cpp -o LASlib/lasreader_shp.o In file included from LASlib/lasreader_shp.cpp:31: In file included from LASlib/lasreader_shp.hpp:34: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_shp.cpp:31: In file included from LASlib/lasreader_shp.hpp:34: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_shp.cpp:31: In file included from LASlib/lasreader_shp.hpp:34: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreader_shp.cpp:634:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 634 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_shp.cpp:638:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 638 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_shp.cpp:642:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 642 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_shp.cpp:683:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 683 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_shp.cpp:687:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 687 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_shp.cpp:691:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 691 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_asc.cpp -o LASlib/lasreader_asc.o In file included from LASlib/lasreader_asc.cpp:31: In file included from LASlib/lasreader_asc.hpp:37: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_asc.cpp:31: In file included from LASlib/lasreader_asc.hpp:37: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_asc.cpp:31: In file included from LASlib/lasreader_asc.hpp:37: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreaderstored.cpp -o LASlib/lasreaderstored.o In file included from LASlib/lasreaderstored.cpp:31: In file included from LASlib/lasreaderstored.hpp:37: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreaderstored.cpp:31: In file included from LASlib/lasreaderstored.hpp:37: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreaderstored.cpp:31: In file included from LASlib/lasreaderstored.hpp:37: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreaderpipeon.cpp -o LASlib/lasreaderpipeon.o In file included from LASlib/lasreaderpipeon.cpp:31: In file included from LASlib/lasreaderpipeon.hpp:36: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreaderpipeon.cpp:31: In file included from LASlib/lasreaderpipeon.hpp:36: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreaderpipeon.cpp:31: In file included from LASlib/lasreaderpipeon.hpp:36: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_bil.cpp -o LASlib/lasreader_bil.o In file included from LASlib/lasreader_bil.cpp:31: In file included from LASlib/lasreader_bil.hpp:38: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_bil.cpp:31: In file included from LASlib/lasreader_bil.hpp:38: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_bil.cpp:31: In file included from LASlib/lasreader_bil.hpp:38: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lastransform.cpp -o LASlib/lastransform.o In file included from LASlib/lastransform.cpp:31: In file included from LASlib/lastransform.hpp:46: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lastransform.cpp:31: In file included from LASlib/lastransform.hpp:46: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lastransform.cpp:31: In file included from LASlib/lastransform.hpp:46: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lastransform.cpp:587:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'U32' (aka 'unsigned int') [-Wfloat-conversion] 587 | seed = unif_rand()*RAND_MAX; | ~ ~~~~~~~~~~~^~~~~~~~~ LASlib/lastransform.cpp:729:16: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 729 | map[u] = u; | ~ ^ LASlib/lastransform.cpp:742:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 742 | map[from] = to; | ~ ^~ LASlib/lastransform.cpp:794:155: warning: multi-character character constant [-Wmultichar] 794 | inline I32 get_command(CHAR* string) const { return snprintf(string, 256, "-%s%c %u ", name(), (rgbi == 0 ? 'R' : (rgbi == 1 ? 'G' : (rgbi == 2 ? 'B' : 'NIR'))), index); }; | ^ LASlib/lastransform.cpp:1072:155: warning: multi-character character constant [-Wmultichar] 1072 | inline I32 get_command(CHAR* string) const { return snprintf(string, 256, "-%s%c %u ", name(), (rgbi == 0 ? 'R' : (rgbi == 1 ? 'G' : (rgbi == 2 ? 'B' : 'NIR'))), index); }; | ^ LASlib/lastransform.cpp:1527:16: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1527 | map[u] = u; | ~ ^ LASlib/lastransform.cpp:1540:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1540 | map[from] = to; | ~ ^~ LASlib/lastransform.cpp:1680:16: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1680 | map[u] = u; | ~ ^ LASlib/lastransform.cpp:1693:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1693 | map[from] = to; | ~ ^~ LASlib/lastransform.cpp:2139:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2139 | Rs[count] = R; | ~ ^ LASlib/lastransform.cpp:2140:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2140 | Gs[count] = G; | ~ ^ LASlib/lastransform.cpp:2141:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2141 | Bs[count] = B; | ~ ^ LASlib/lastransform.cpp:2377:107: warning: implicit conversion loses integer precision: 'int' to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 2377 | inline void transform(LASpoint* point) { point->set_point_source_ID((point->get_point_source_ID() << 2) | point->get_extended_scanner_channel()); }; | ~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lastransform.cpp:2791:13: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2791 | if (offset_x) transformed_fields |= LASTRANSFORM_X_COORDINATE; | ~~ ^~~~~~~~ LASlib/lastransform.cpp:2792:13: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2792 | if (offset_y) transformed_fields |= LASTRANSFORM_Y_COORDINATE; | ~~ ^~~~~~~~ LASlib/lastransform.cpp:2793:13: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2793 | if (offset_z) transformed_fields |= LASTRANSFORM_Z_COORDINATE; | ~~ ^~~~~~~~ LASlib/lastransform.cpp:4712:72: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 4712 | add_operation(new LASoperationChangeUserDataFromTo(from_value, to_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ LASlib/lastransform.cpp:4712:60: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 4712 | add_operation(new LASoperationChangeUserDataFromTo(from_value, to_value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~ LASlib/lastransform.cpp:4999:73: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 4999 | add_operation(new LASoperationClassifyIntensityBelowAs(value, classification)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~ LASlib/lastransform.cpp:4999:66: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4999 | add_operation(new LASoperationClassifyIntensityBelowAs(value, classification)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ LASlib/lastransform.cpp:5031:73: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 5031 | add_operation(new LASoperationClassifyIntensityAboveAs(value, classification)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~ LASlib/lastransform.cpp:5031:66: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 5031 | add_operation(new LASoperationClassifyIntensityAboveAs(value, classification)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ LASlib/lastransform.cpp:5074:90: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 5074 | add_operation(new LASoperationClassifyIntensityBetweenAs(min_value, max_value, classification)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~ LASlib/lastransform.cpp:5074:79: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 5074 | add_operation(new LASoperationClassifyIntensityBetweenAs(min_value, max_value, classification)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ LASlib/lastransform.cpp:5074:68: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 5074 | add_operation(new LASoperationClassifyIntensityBetweenAs(min_value, max_value, classification)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ 33 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswaveform13writer.cpp -o LASlib/laswaveform13writer.o In file included from LASlib/laswaveform13writer.cpp:31: In file included from LASlib/laswaveform13writer.hpp:36: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswaveform13writer.cpp:31: In file included from LASlib/laswaveform13writer.hpp:36: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswaveform13writer.cpp:31: In file included from LASlib/laswaveform13writer.hpp:36: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/laswaveform13writer.cpp:117:54: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 117 | waveforms[i]->nsamples = wave_packet_descr[i]->getNumberOfSamples(); | ~ ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswaveform13reader.cpp -o LASlib/laswaveform13reader.o In file included from LASlib/laswaveform13reader.cpp:31: In file included from LASlib/laswaveform13reader.hpp:36: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswaveform13reader.cpp:31: In file included from LASlib/laswaveform13reader.hpp:36: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswaveform13reader.cpp:31: In file included from LASlib/laswaveform13reader.hpp:36: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/laswaveform13reader.cpp:343:33: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 343 | samples[s_count] = ic8->decompress(samples[s_count-1]); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/laswaveform13reader.cpp:353:42: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 353 | ((U16*)samples)[s_count] = ic16->decompress(((U16*)samples)[s_count-1]); | ~ ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswritercompatible.cpp -o LASlib/laswritercompatible.o In file included from LASlib/laswritercompatible.cpp:31: In file included from LASlib/laswritercompatible.hpp:35: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswritercompatible.cpp:31: In file included from LASlib/laswritercompatible.hpp:35: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswritercompatible.cpp:31: In file included from LASlib/laswritercompatible.hpp:35: In file included from LASlib/laswriter.hpp:48: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/laswritercompatible.cpp:344:47: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 344 | pointCompatibleDown.return_number = 7 - return_count_difference; | ~ ~~^~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/laswritercompatible.cpp:630:70: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 630 | pointCompatibleUp.extended_return_number = return_number_increment + pointCompatibleUp.return_number; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/laswritercompatible.cpp:631:78: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 631 | pointCompatibleUp.extended_number_of_returns = number_of_returns_increment + pointCompatibleUp.number_of_returns; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/laswritercompatible.cpp:633:48: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 633 | pointCompatibleUp.extended_scanner_channel = scanner_channel; | ~ ^~~~~~~~~~~~~~~ LASlib/laswritercompatible.cpp:634:158: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 634 | pointCompatibleUp.extended_classification_flags = (overlap_bit << 3) | ((pointCompatibleUp.withheld_flag) << 2) | ((pointCompatibleUp.keypoint_flag) << 1) | (pointCompatibleUp.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasutility.cpp -o LASlib/lasutility.o In file included from LASlib/lasutility.cpp:31: In file included from LASlib/lasutility.hpp:37: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasutility.cpp:31: In file included from LASlib/lasutility.hpp:37: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasutility.cpp:31: In file included from LASlib/lasutility.hpp:37: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasutility.cpp:1508:29: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1508 | (*array_sizes)[pos_y] = array_sizes_new; | ~ ^~~~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_dtm.cpp -o LASlib/lasreader_dtm.o In file included from LASlib/lasreader_dtm.cpp:31: In file included from LASlib/lasreader_dtm.hpp:36: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_dtm.cpp:31: In file included from LASlib/lasreader_dtm.hpp:36: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_dtm.cpp:31: In file included from LASlib/lasreader_dtm.hpp:36: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreader_dtm.cpp:87:29: warning: unused variable 'PCS_NAD83_Kentucky_South' [-Wunused-const-variable] 87 | static const unsigned short PCS_NAD83_Kentucky_South = 26980; | ^~~~~~~~~~~~~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasfilter.cpp -o LASlib/lasfilter.o In file included from LASlib/lasfilter.cpp:31: In file included from LASlib/lasfilter.hpp:37: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasfilter.cpp:31: In file included from LASlib/lasfilter.hpp:37: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasfilter.cpp:31: In file included from LASlib/lasfilter.hpp:37: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasfilter.cpp:1329:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'U32' (aka 'unsigned int') [-Wfloat-conversion] 1329 | seed = unif_rand()*RAND_MAX; | ~ ~~~~~~~~~~~^~~~~~~~~ LASlib/lasfilter.cpp:1463:31: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1463 | (*array_sizes)[pos_y] = array_sizes_new; | ~ ^~~~~~~~~~~~~~~ LASlib/lasfilter.cpp:2664:54: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2664 | add_criterion(new LAScriterionKeepUserData(value)); | ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ LASlib/lasfilter.cpp:2680:59: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2680 | add_criterion(new LAScriterionKeepUserDataBelow(value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ LASlib/lasfilter.cpp:2696:59: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2696 | add_criterion(new LAScriterionKeepUserDataAbove(value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ LASlib/lasfilter.cpp:2718:66: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2718 | add_criterion(new LAScriterionKeepUserDataBetween(min, max)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~ LASlib/lasfilter.cpp:2718:61: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2718 | add_criterion(new LAScriterionKeepUserDataBetween(min, max)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~ LASlib/lasfilter.cpp:2742:57: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 2742 | add_criterion(new LAScriterionKeepPointSource(ID)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ LASlib/lasfilter.cpp:2756:59: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 2756 | add_criterion(new LAScriterionKeepPointSource(ID)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ LASlib/lasfilter.cpp:3994:56: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 3994 | add_criterion(new LAScriterionDropUserData(user_data)); | ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ LASlib/lasfilter.cpp:4018:59: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 4018 | add_criterion(new LAScriterionDropUserDataBelow(min)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~ LASlib/lasfilter.cpp:4039:59: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 4039 | add_criterion(new LAScriterionDropUserDataAbove(max)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~ LASlib/lasfilter.cpp:4071:66: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 4071 | add_criterion(new LAScriterionDropUserDataBetween(min, max)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~ LASlib/lasfilter.cpp:4071:61: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 4071 | add_criterion(new LAScriterionDropUserDataBetween(min, max)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~ LASlib/lasfilter.cpp:4099:59: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 4099 | add_criterion(new LAScriterionDropPointSource(ID)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ 23 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasignore.cpp -o LASlib/lasignore.o In file included from LASlib/lasignore.cpp:31: In file included from LASlib/lasignore.hpp:34: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasignore.cpp:31: In file included from LASlib/lasignore.hpp:34: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasignore.cpp:31: In file included from LASlib/lasignore.hpp:34: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laskdtree.cpp -o LASlib/laskdtree.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswriter_qfit.cpp -o LASlib/laswriter_qfit.o In file included from LASlib/laswriter_qfit.cpp:31: In file included from LASlib/laswriter_qfit.hpp:34: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_qfit.cpp:31: In file included from LASlib/laswriter_qfit.hpp:34: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_qfit.cpp:31: In file included from LASlib/laswriter_qfit.hpp:34: In file included from LASlib/laswriter.hpp:48: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_qfit.cpp -o LASlib/lasreader_qfit.o In file included from LASlib/lasreader_qfit.cpp:31: In file included from LASlib/lasreader_qfit.hpp:37: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_qfit.cpp:31: In file included from LASlib/lasreader_qfit.hpp:37: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_qfit.cpp:31: In file included from LASlib/lasreader_qfit.hpp:37: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreader_qfit.cpp:349:23: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 349 | point.intensity = buffer[5]; | ~ ^~~~~~~~~ LASlib/lasreader_qfit.cpp:461:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 461 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_qfit.cpp:465:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 465 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_qfit.cpp:469:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 469 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_qfit.cpp:510:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 510 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_qfit.cpp:514:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 514 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_qfit.cpp:518:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 518 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ 15 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswriter.cpp -o LASlib/laswriter.o In file included from LASlib/laswriter.cpp:31: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter.cpp:31: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter.cpp:31: In file included from LASlib/laswriter.hpp:48: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader.cpp -o LASlib/lasreader.o In file included from LASlib/lasreader.cpp:36: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader.cpp:36: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader.cpp:36: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreader.cpp:469:7: warning: variable 'inrect' set but not used [-Wunused-but-set-variable] 469 | bool inrect; | ^ LASlib/lasreader.cpp:883:73: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 883 | transform->setPointSource(file_name_current + files_are_flightlines + files_are_flightlines_index); | ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:944:86: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 944 | lasreaderlas->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1021:112: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1021 | if (files_are_flightlines) lasreaderbin->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1077:112: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1077 | if (files_are_flightlines) lasreadershp->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1133:112: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1133 | if (files_are_flightlines) lasreaderasc->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1189:112: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1189 | if (files_are_flightlines) lasreaderbil->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1245:112: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1245 | if (files_are_flightlines) lasreaderdtm->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1297:112: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1297 | if (files_are_flightlines) lasreaderply->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1358:113: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1358 | if (files_are_flightlines) lasreaderqfit->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1424:112: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1424 | if (files_are_flightlines) lasreadertxt->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:1501:111: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1501 | if (files_are_flightlines) lasreadertxt->header.file_source_ID = file_name_current + files_are_flightlines + files_are_flightlines_index; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASlib/lasreader.cpp:2687:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 2687 | int len = strlen(string); | ~~~ ^~~~~~~~~~~~~~ 21 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_las.cpp -o LASlib/lasreader_las.o In file included from LASlib/lasreader_las.cpp:31: In file included from LASlib/lasreader_las.hpp:46: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_las.cpp:31: In file included from LASlib/lasreader_las.hpp:46: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_las.cpp:31: In file included from LASlib/lasreader_las.hpp:46: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreader_las.cpp:477:98: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 477 | header.vlrs[i].record_length_after_header = (int)header.offset_to_point_data - vlrs_size - header.header_size; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ LASlib/lasreader_las.cpp:958:13: warning: variable 'evlrs_size' set but not used [-Wunused-but-set-variable] 958 | I64 evlrs_size = 0; | ^ LASlib/lasreader_las.cpp:1621:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 1621 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_las.cpp:1626:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 1626 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_las.cpp:1631:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 1631 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ 13 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_ply.cpp -o LASlib/lasreader_ply.o In file included from LASlib/lasreader_ply.cpp:31: In file included from LASlib/lasreader_ply.hpp:35: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_ply.cpp:31: In file included from LASlib/lasreader_ply.hpp:35: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_ply.cpp:31: In file included from LASlib/lasreader_ply.hpp:35: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreader_ply.cpp:1491:22: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1491 | point.rgb[0] = hex_value; | ~ ^~~~~~~~~ LASlib/lasreader_ply.cpp:1494:22: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1494 | point.rgb[1] = hex_value; | ~ ^~~~~~~~~ LASlib/lasreader_ply.cpp:1497:22: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 1497 | point.rgb[2] = hex_value; | ~ ^~~~~~~~~ LASlib/lasreader_ply.cpp:1648:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1648 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1656:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1656 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1664:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1664 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1678:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1678 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1715:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1715 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1723:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1723 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1731:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1731 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1745:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1745 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1786:37: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1786 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1801:35: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1801 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1815:35: warning: implicit conversion loses integer precision: 'int' to 'CHAR' (aka 'char') [-Wimplicit-int-conversion] 1815 | parse_string[items] = '0' + num; | ~ ~~~~^~~~~ LASlib/lasreader_ply.cpp:1967:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 1967 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_ply.cpp:1971:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 1971 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_ply.cpp:1975:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 1975 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_ply.cpp:2016:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2016 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_ply.cpp:2020:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2020 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_ply.cpp:2024:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 2024 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ 28 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/lasreader_bin.cpp -o LASlib/lasreader_bin.o In file included from LASlib/lasreader_bin.cpp:31: In file included from LASlib/lasreader_bin.hpp:36: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_bin.cpp:31: In file included from LASlib/lasreader_bin.hpp:36: In file included from LASlib/lasreader.hpp:55: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/lasreader_bin.cpp:31: In file included from LASlib/lasreader_bin.hpp:36: In file included from LASlib/lasreader.hpp:55: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/lasreader_bin.cpp:415:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 415 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_bin.cpp:419:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 419 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_bin.cpp:423:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 423 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_bin.cpp:464:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 464 | if (scale_factor[0] && (header.x_scale_factor != scale_factor[0])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_bin.cpp:468:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 468 | if (scale_factor[1] && (header.y_scale_factor != scale_factor[1])) | ^~~~~~~~~~~~~~~ ~~ LASlib/lasreader_bin.cpp:472:7: warning: implicit conversion turns floating-point number into integer: 'F64' (aka 'double') to 'bool' [-Wfloat-conversion] 472 | if (scale_factor[2] && (header.z_scale_factor != scale_factor[2])) | ^~~~~~~~~~~~~~~ ~~ 14 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswriter_bin.cpp -o LASlib/laswriter_bin.o In file included from LASlib/laswriter_bin.cpp:31: In file included from LASlib/laswriter_bin.hpp:36: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_bin.cpp:31: In file included from LASlib/laswriter_bin.hpp:36: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_bin.cpp:31: In file included from LASlib/laswriter_bin.hpp:36: In file included from LASlib/laswriter.hpp:48: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ LASlib/laswriter_bin.cpp:220:41: warning: implicit conversion loses integer precision: 'int' to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 220 | tsrow.echo_intensity = (echo << 14) | (point->intensity & 0x3FFF); | ~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASlib/laswriter_txt.cpp -o LASlib/laswriter_txt.o In file included from LASlib/laswriter_txt.cpp:31: In file included from LASlib/laswriter_txt.hpp:35: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_txt.cpp:31: In file included from LASlib/laswriter_txt.hpp:35: In file included from LASlib/laswriter.hpp:48: In file included from LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASlib/laswriter_txt.cpp:31: In file included from LASlib/laswriter_txt.hpp:35: In file included from LASlib/laswriter.hpp:48: LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/laszip.cpp -o LASzip/laszip.o LASzip/laszip.cpp:88:26: warning: implicit conversion loses integer precision: 'int' to 'unsigned short' [-Wimplicit-int-conversion] 88 | num_items = (num - 34) / 6; | ~ ~~~~~~~~~~~^~~ LASzip/laszip.cpp:593:26: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'unsigned short' [-Wimplicit-int-conversion] 593 | (*items)[i].size = extra_bytes_number; | ~ ^~~~~~~~~~~~~~~~~~ LASzip/laszip.cpp:599:26: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'unsigned short' [-Wimplicit-int-conversion] 599 | (*items)[i].size = extra_bytes_number; | ~ ^~~~~~~~~~~~~~~~~~ 3 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lasindex.cpp -o LASzip/lasindex.o In file included from LASzip/lasindex.cpp:42: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASzip/lasindex.cpp:42: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASzip/lasindex.cpp:42: In file included from ./LASlib/lasreader.hpp:55: ./LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/arithmeticmodel.cpp -o LASzip/arithmeticmodel.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/laswriteitemcompressed_v1.cpp -o LASzip/laswriteitemcompressed_v1.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/laswriteitemcompressed_v2.cpp -o LASzip/laswriteitemcompressed_v2.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/laswriteitemcompressed_v3.cpp -o LASzip/laswriteitemcompressed_v3.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/laswriteitemcompressed_v4.cpp -o LASzip/laswriteitemcompressed_v4.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lasreaditemcompressed_v1.cpp -o LASzip/lasreaditemcompressed_v1.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lasreaditemcompressed_v2.cpp -o LASzip/lasreaditemcompressed_v2.o LASzip/lasreaditemcompressed_v2.cpp:190:23: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 190 | last_item[16] = U8_FOLD(val + last_item[16]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:45: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ~^~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:190:23: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 190 | last_item[16] = U8_FOLD(val + last_item[16]); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:85: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ~^~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:190:35: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 190 | last_item[16] = U8_FOLD(val + last_item[16]); | ~ ~~~~^~~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:106: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ^ LASzip/lasreaditemcompressed_v2.cpp:460:17: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 460 | corr = dec->decodeSymbol(m_rgb_diff_0); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:469:17: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 469 | corr = dec->decodeSymbol(m_rgb_diff_1); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:481:19: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 481 | corr = dec->decodeSymbol(m_rgb_diff_2); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:490:19: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 490 | corr = dec->decodeSymbol(m_rgb_diff_4); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:501:19: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 501 | corr = dec->decodeSymbol(m_rgb_diff_3); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:510:19: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 510 | corr = dec->decodeSymbol(m_rgb_diff_5); | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:588:15: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 588 | item[i] = U8_FOLD(value); | ~ ^~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:45: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ~^~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:588:15: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 588 | item[i] = U8_FOLD(value); | ~ ^~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:85: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ~^~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v2.cpp:588:23: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 588 | item[i] = U8_FOLD(value); | ~ ^~~~~ LASzip/mydefs.hpp:126:106: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ^ 12 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lasreaditemcompressed_v3.cpp -o LASzip/lasreaditemcompressed_v3.o LASzip/lasreaditemcompressed_v3.cpp:747:49: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 747 | ((LASpoint14*)last_item)->scanner_channel = scanner_channel; | ~ ^~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:772:51: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 772 | ((LASpoint14*)last_item)->number_of_returns = n; | ~ ^ LASzip/lasreaditemcompressed_v3.cpp:789:47: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 789 | ((LASpoint14*)last_item)->return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v3.cpp:794:47: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 794 | ((LASpoint14*)last_item)->return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v3.cpp:814:47: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 814 | ((LASpoint14*)last_item)->return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v3.cpp:834:56: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 834 | ((LASpoint14*)last_item)->legacy_return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v3.cpp:840:54: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 840 | ((LASpoint14*)last_item)->legacy_return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v3.cpp:841:58: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 841 | ((LASpoint14*)last_item)->legacy_number_of_returns = n; | ~ ^ LASzip/lasreaditemcompressed_v3.cpp:894:68: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 894 | ((LASpoint14*)last_item)->classification = dec_classification->decodeSymbol(contexts[current_context].m_classification[ccc]); | ~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:934:61: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 934 | U16 intensity = contexts[current_context].ic_intensity->decompress(contexts[current_context].last_intensity[(cpr<<1) | gps_time_change], cpr); | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:947:87: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 947 | ((LASpoint14*)last_item)->scan_angle = contexts[current_context].ic_scan_angle->decompress(((LASpoint14*)last_item)->scan_angle, gps_time_change); // if the GPS time has changed | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:963:58: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 963 | ((LASpoint14*)last_item)->user_data = dec_user_data->decodeSymbol(contexts[current_context].m_user_data[((LASpoint14*)last_item)->user_data/4]); | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:974:97: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 974 | ((LASpoint14*)last_item)->point_source_ID = contexts[current_context].ic_point_source_ID->decompress(((LASpoint14*)last_item)->point_source_ID); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1333:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1333 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_0); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1342:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1342 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_1); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1354:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1354 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_2); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1363:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1363 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_4); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1374:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1374 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_3); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1383:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1383 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_5); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1717:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1717 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_0); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1726:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1726 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_1); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1738:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1738 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_2); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1747:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1747 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_4); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1758:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1758 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_3); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1767:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1767 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_5); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1798:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1798 | corr = dec_NIR->decodeSymbol(contexts[current_context].m_nir_diff_0); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:1807:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1807 | corr = dec_NIR->decodeSymbol(contexts[current_context].m_nir_diff_1); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:2404:17: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2404 | item[i] = U8_FOLD(value); | ~ ^~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:45: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ~^~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:2404:17: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2404 | item[i] = U8_FOLD(value); | ~ ^~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:85: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ~^~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v3.cpp:2404:25: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2404 | item[i] = U8_FOLD(value); | ~ ^~~~~ LASzip/mydefs.hpp:126:106: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ^ 30 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lasreaditemcompressed_v4.cpp -o LASzip/lasreaditemcompressed_v4.o LASzip/lasreaditemcompressed_v4.cpp:746:49: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 746 | ((LASpoint14*)last_item)->scanner_channel = scanner_channel; | ~ ^~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:772:51: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 772 | ((LASpoint14*)last_item)->number_of_returns = n; | ~ ^ LASzip/lasreaditemcompressed_v4.cpp:789:47: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 789 | ((LASpoint14*)last_item)->return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v4.cpp:794:47: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 794 | ((LASpoint14*)last_item)->return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v4.cpp:814:47: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 814 | ((LASpoint14*)last_item)->return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v4.cpp:834:56: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 834 | ((LASpoint14*)last_item)->legacy_return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v4.cpp:840:54: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 840 | ((LASpoint14*)last_item)->legacy_return_number = r; | ~ ^ LASzip/lasreaditemcompressed_v4.cpp:841:58: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 841 | ((LASpoint14*)last_item)->legacy_number_of_returns = n; | ~ ^ LASzip/lasreaditemcompressed_v4.cpp:894:68: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 894 | ((LASpoint14*)last_item)->classification = dec_classification->decodeSymbol(contexts[current_context].m_classification[ccc]); | ~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:934:61: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 934 | U16 intensity = contexts[current_context].ic_intensity->decompress(contexts[current_context].last_intensity[(cpr<<1) | gps_time_change], cpr); | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:947:87: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 947 | ((LASpoint14*)last_item)->scan_angle = contexts[current_context].ic_scan_angle->decompress(((LASpoint14*)last_item)->scan_angle, gps_time_change); // if the GPS time has changed | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:963:58: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 963 | ((LASpoint14*)last_item)->user_data = dec_user_data->decodeSymbol(contexts[current_context].m_user_data[((LASpoint14*)last_item)->user_data/4]); | ~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:974:97: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 974 | ((LASpoint14*)last_item)->point_source_ID = contexts[current_context].ic_point_source_ID->decompress(((LASpoint14*)last_item)->point_source_ID); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1333:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1333 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_0); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1342:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1342 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_1); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1354:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1354 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_2); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1363:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1363 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_4); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1374:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1374 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_3); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1383:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1383 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_5); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1717:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1717 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_0); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1726:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1726 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_1); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1738:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1738 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_2); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1747:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1747 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_4); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1758:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1758 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_3); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1767:25: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1767 | corr = dec_RGB->decodeSymbol(contexts[current_context].m_rgb_diff_5); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1798:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1798 | corr = dec_NIR->decodeSymbol(contexts[current_context].m_nir_diff_0); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:1807:23: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 1807 | corr = dec_NIR->decodeSymbol(contexts[current_context].m_nir_diff_1); | ~ ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:2404:17: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2404 | item[i] = U8_FOLD(value); | ~ ^~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:45: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ~^~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:2404:17: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2404 | item[i] = U8_FOLD(value); | ~ ^~~~~~~~~~~~~~ LASzip/mydefs.hpp:126:85: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ~^~~~~~~~~~~~~~~~ LASzip/lasreaditemcompressed_v4.cpp:2404:25: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 2404 | item[i] = U8_FOLD(value); | ~ ^~~~~ LASzip/mydefs.hpp:126:106: note: expanded from macro 'U8_FOLD' 126 | #define U8_FOLD(n) (((n) < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > U8_MAX) ? (n-U8_MAX_PLUS_ONE) : (n))) | ^ 30 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/arithmeticdecoder.cpp -o LASzip/arithmeticdecoder.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/arithmeticencoder.cpp -o LASzip/arithmeticencoder.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lasquadtree.cpp -o LASzip/lasquadtree.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/laswritepoint.cpp -o LASzip/laswritepoint.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lasreadpoint.cpp -o LASzip/lasreadpoint.o In file included from LASzip/lasreadpoint.cpp:35: LASzip/lasreaditemraw.hpp:300:105: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 300 | ((LAStempReadPoint10*)item)->classification = (((LAStempReadPoint14*)swapped)->classification_flags << 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/integercompressor.cpp -o LASzip/integercompressor.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lasinterval.cpp -o LASzip/lasinterval.o clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c LASzip/lascopc.cpp -o LASzip/lascopc.o In file included from LASzip/lascopc.cpp:31: In file included from LASzip/lascopc.hpp:39: In file included from ./LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASzip/lascopc.cpp:31: In file included from LASzip/lascopc.hpp:39: In file included from ./LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from LASzip/lascopc.cpp:31: In file included from LASzip/lascopc.hpp:39: ./LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 8 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c altrep_compact_replication.cpp -o altrep_compact_replication.o altrep_compact_replication.cpp:125:43: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 125 | SEXP value = PROTECT(Rf_ScalarLogical(val)); | ~~~~~~~~~~~~~~~~ ^~~ /Users/ripley/R/R-devel/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:792:28: error: too many arguments provided to function-like macro invocation 792 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Users/ripley/R/R-devel/include/Rinternals.h:999:9: note: macro 'length' defined here 999 | #define length(x) Rf_length(x) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:791:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces 791 | _LIBCPP_HIDE_FROM_ABI int | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:540:22: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' 540 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:792:9: error: expected ';' at end of declaration list 792 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:874:28: error: too many arguments provided to function-like macro invocation 874 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Users/ripley/R/R-devel/include/Rinternals.h:999:9: note: macro 'length' defined here 999 | #define length(x) Rf_length(x) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:873:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces 873 | _LIBCPP_HIDE_FROM_ABI int | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:540:22: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' 540 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:874:9: error: expected ';' at end of declaration list 874 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:955:28: error: too many arguments provided to function-like macro invocation 955 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Users/ripley/R/R-devel/include/Rinternals.h:999:9: note: macro 'length' defined here 999 | #define length(x) Rf_length(x) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:954:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces 954 | _LIBCPP_HIDE_FROM_ABI int | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:540:22: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' 540 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:955:9: error: expected ';' at end of declaration list 955 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1036:28: error: too many arguments provided to function-like macro invocation 1036 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Users/ripley/R/R-devel/include/Rinternals.h:999:9: note: macro 'length' defined here 999 | #define length(x) Rf_length(x) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1035:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces 1035 | _LIBCPP_HIDE_FROM_ABI int | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:540:22: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' 540 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1036:9: error: expected ';' at end of declaration list 1036 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1118:28: error: too many arguments provided to function-like macro invocation 1118 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Users/ripley/R/R-devel/include/Rinternals.h:999:9: note: macro 'length' defined here 999 | #define length(x) Rf_length(x) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1117:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces 1117 | _LIBCPP_HIDE_FROM_ABI int | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:540:22: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' 540 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1118:9: error: expected ';' at end of declaration list 1118 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1199:28: error: too many arguments provided to function-like macro invocation 1199 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ /Users/ripley/R/R-devel/include/Rinternals.h:999:9: note: macro 'length' defined here 999 | #define length(x) Rf_length(x) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1198:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces 1198 | _LIBCPP_HIDE_FROM_ABI int | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:540:22: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI' 540 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE)))) | ^ In file included from altrep_compact_replication.cpp:505: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:1199:9: error: expected ';' at end of declaration list 1199 | length(state_type& __st, const extern_type* __frm, const extern_type* __end, size_t __mx) const { | ^ altrep_compact_replication.cpp:193:13: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 193 | int n = Length(vec); | ~ ^~~~~~~~~~~ altrep_compact_replication.cpp:397:42: note: in instantiation of member function 'compact_repetition::DataptrInt' requested here 397 | R_set_altvec_Dataptr_method(class_t, DataptrInt); | ^ altrep_compact_replication.cpp:455:28: note: in instantiation of member function 'compact_repetition::InitInt' requested here 455 | compact_repetition::InitInt(dll); | ^ altrep_compact_replication.cpp:297:36: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 297 | auto viu = new repetition(n, v); | ~~~~~~~~~~ ^ altrep_compact_replication.cpp:399:49: note: in instantiation of member function 'compact_repetition::extract_subset_int' requested here 399 | R_set_altvec_Extract_subset_method(class_t, extract_subset_int); | ^ altrep_compact_replication.cpp:455:28: note: in instantiation of member function 'compact_repetition::InitInt' requested here 455 | compact_repetition::InitInt(dll); | ^ altrep_compact_replication.cpp:210:13: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 210 | int n = Length(vec); | ~ ^~~~~~~~~~~ altrep_compact_replication.cpp:419:42: note: in instantiation of member function 'compact_repetition::DataptrReal' requested here 419 | R_set_altvec_Dataptr_method(class_t, DataptrReal); | ^ altrep_compact_replication.cpp:456:31: note: in instantiation of member function 'compact_repetition::InitReal' requested here 456 | compact_repetition::InitReal(dll); | ^ altrep_compact_replication.cpp:339:36: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 339 | auto viu = new repetition(n, v); | ~~~~~~~~~~ ^ altrep_compact_replication.cpp:421:49: note: in instantiation of member function 'compact_repetition::extract_subset_real' requested here 421 | R_set_altvec_Extract_subset_method(class_t, extract_subset_real); | ^ altrep_compact_replication.cpp:456:31: note: in instantiation of member function 'compact_repetition::InitReal' requested here 456 | compact_repetition::InitReal(dll); | ^ altrep_compact_replication.cpp:227:13: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 227 | int n = Length(vec); | ~ ^~~~~~~~~~~ altrep_compact_replication.cpp:441:42: note: in instantiation of member function 'compact_repetition::DataptrLogical' requested here 441 | R_set_altvec_Dataptr_method(class_t, DataptrLogical); | ^ altrep_compact_replication.cpp:457:29: note: in instantiation of member function 'compact_repetition::InitLogical' requested here 457 | compact_repetition::InitLogical(dll); | ^ altrep_compact_replication.cpp:381:36: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 381 | auto viu = new repetition(n, v); | ~~~~~~~~~~ ^ altrep_compact_replication.cpp:443:49: note: in instantiation of member function 'compact_repetition::extract_subset_logical' requested here 443 | R_set_altvec_Extract_subset_method(class_t, extract_subset_logical); | ^ altrep_compact_replication.cpp:457:29: note: in instantiation of member function 'compact_repetition::InitLogical' requested here 457 | compact_repetition::InitLogical(dll); | ^ altrep_compact_replication.cpp:125:43: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 125 | SEXP value = PROTECT(Rf_ScalarLogical(val)); | ~~~~~~~~~~~~~~~~ ^~~ /Users/ripley/R/R-devel/include/Rinternals.h:388:31: note: expanded from macro 'PROTECT' 388 | #define PROTECT(s) Rf_protect(s) | ^ altrep_compact_replication.cpp:444:51: note: in instantiation of member function 'compact_repetition::Serialized_state_lgl' requested here 444 | R_set_altrep_Serialized_state_method(class_t, Serialized_state_lgl); | ^ altrep_compact_replication.cpp:457:29: note: in instantiation of member function 'compact_repetition::InitLogical' requested here 457 | compact_repetition::InitLogical(dll); | ^ 8 warnings and 18 errors generated. make[1]: *** [altrep_compact_replication.o] Error 1 clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c rlasstreamer.cpp -o rlasstreamer.o In file included from rlasstreamer.cpp:1: In file included from ./rlasstreamer.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:60: ./LASzip/mydefs.hpp:38:9: warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined] 38 | #define __STDC_FORMAT_MACROS 1 | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/inttypes.h:251:13: note: previous definition is here 251 | # define __STDC_FORMAT_MACROS | ^ In file included from rlasstreamer.cpp:1: In file included from ./rlasstreamer.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rlasstreamer.cpp:1: In file included from ./rlasstreamer.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rlasstreamer.cpp:1: In file included from ./rlasstreamer.h:5: In file included from ./LASlib/lasreader.hpp:55: ./LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ rlasstreamer.cpp:246:16: warning: implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion] 246 | nalloc = ceil((float)npoints/8); | ~ ^~~~~~~~~~~~~~~~~~~~~~ rlasstreamer.cpp:375:90: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] 375 | progress = (double)lasreader->p_count/(double)lasreader->header.number_of_point_records*100; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ rlasstreamer.cpp:462:40: warning: implicit conversion turns floating-point number into integer: 'F32' (aka 'float') to 'value_type' (aka 'short') [-Wfloat-conversion] 462 | SAR.push_back(lasreader->point.get_scan_angle()); | ~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 12 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c rlasextrabytesattributes.cpp -o rlasextrabytesattributes.o In file included from rlasextrabytesattributes.cpp:1: In file included from ./rlasextrabytesattributes.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:60: ./LASzip/mydefs.hpp:38:9: warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined] 38 | #define __STDC_FORMAT_MACROS 1 | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/inttypes.h:251:13: note: previous definition is here 251 | # define __STDC_FORMAT_MACROS | ^ In file included from rlasextrabytesattributes.cpp:1: In file included from ./rlasextrabytesattributes.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rlasextrabytesattributes.cpp:1: In file included from ./rlasextrabytesattributes.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rlasextrabytesattributes.cpp:1: In file included from ./rlasextrabytesattributes.h:5: In file included from ./LASlib/lasreader.hpp:55: ./LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ 9 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c readLAS.cpp -o readLAS.o In file included from readLAS.cpp:33: In file included from ./rlasstreamer.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:60: ./LASzip/mydefs.hpp:38:9: warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined] 38 | #define __STDC_FORMAT_MACROS 1 | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/inttypes.h:251:13: note: previous definition is here 251 | # define __STDC_FORMAT_MACROS | ^ In file included from readLAS.cpp:33: In file included from ./rlasstreamer.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from readLAS.cpp:33: In file included from ./rlasstreamer.h:5: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from readLAS.cpp:33: In file included from ./rlasstreamer.h:5: In file included from ./LASlib/lasreader.hpp:55: ./LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ In file included from readLAS.cpp:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ readLAS.cpp:46:18: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here 46 | if (((polygon(i, 1) > y) != (polygon(j, 1) > y)) && | ^ In file included from readLAS.cpp:30: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:41: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:57: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] 138 | return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; | ~~~~~~ ^ 11 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c readheader.cpp -o readheader.o In file included from readheader.cpp:36: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:60: ./LASzip/mydefs.hpp:38:9: warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined] 38 | #define __STDC_FORMAT_MACROS 1 | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/inttypes.h:251:13: note: previous definition is here 251 | # define __STDC_FORMAT_MACROS | ^ In file included from readheader.cpp:36: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from readheader.cpp:36: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from readheader.cpp:36: In file included from ./LASlib/lasreader.hpp:55: ./LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ readheader.cpp:467:47: warning: implicit conversion loses integer precision: 'I64' (aka 'long long') to 'int' [-Wshorten-64-to-32] 467 | int n = vlr.record_length_after_header/8; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ readheader.cpp:481:75: warning: implicit conversion loses integer precision: 'I64' (aka 'long long') to 'int' [-Wshorten-64-to-32] 481 | lvlr.push_back(nullterminate(lasheader->vlr_geo_ascii_params, vlr.record_length_after_header)); | ~~~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ readheader.cpp:487:75: warning: implicit conversion loses integer precision: 'I64' (aka 'long long') to 'int' [-Wshorten-64-to-32] 487 | lvlr.push_back(nullterminate(lasheader->vlr_geo_ogc_wkt_math, vlr.record_length_after_header)); | ~~~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ readheader.cpp:493:70: warning: implicit conversion loses integer precision: 'I64' (aka 'long long') to 'int' [-Wshorten-64-to-32] 493 | lvlr.push_back(nullterminate(lasheader->vlr_geo_ogc_wkt, vlr.record_length_after_header)); | ~~~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 13 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c writeLAS.cpp -o writeLAS.o In file included from writeLAS.cpp:4: In file included from ./LASlib/laswriter.hpp:48: In file included from ./LASlib/lasdefinitions.hpp:60: ./LASzip/mydefs.hpp:38:9: warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined] 38 | #define __STDC_FORMAT_MACROS 1 | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/inttypes.h:251:13: note: previous definition is here 251 | # define __STDC_FORMAT_MACROS | ^ In file included from writeLAS.cpp:4: In file included from ./LASlib/laswriter.hpp:48: In file included from ./LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from writeLAS.cpp:4: In file included from ./LASlib/laswriter.hpp:48: In file included from ./LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from writeLAS.cpp:4: In file included from ./LASlib/laswriter.hpp:48: ./LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ writeLAS.cpp:29:33: warning: implicit conversion loses integer precision: 'int' to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 29 | header.file_source_ID = (int)LASheader["File Source ID"]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ writeLAS.cpp:30:33: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 30 | header.version_major = (int)LASheader["Version Major"]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ writeLAS.cpp:31:33: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 31 | header.version_minor = (int)LASheader["Version Minor"]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ writeLAS.cpp:32:33: warning: implicit conversion loses integer precision: 'int' to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 32 | header.header_size = (int)LASheader["Header Size"]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ writeLAS.cpp:34:33: warning: implicit conversion loses integer precision: 'int' to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 34 | header.file_creation_year = (int)LASheader["File Creation Year"]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ writeLAS.cpp:35:33: warning: implicit conversion loses integer precision: 'int' to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 35 | header.file_creation_day = (int)LASheader["File Creation Day of Year"]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ writeLAS.cpp:36:33: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 36 | header.point_data_format = (int)LASheader["Point Data Format ID"]; | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ writeLAS.cpp:48:37: warning: implicit conversion loses integer precision: 'int' to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 48 | header.point_data_record_length = get_point_data_record_length(header.point_data_format); | ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ writeLAS.cpp:70:18: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 70 | int n = vlrs.size(); | ~ ~~~~~^~~~~~ writeLAS.cpp:82:26: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 82 | int ntags = tags.size(); | ~~~~~ ~~~~~^~~~~~ writeLAS.cpp:102:46: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'I32' (aka 'int') [-Wshorten-64-to-32] 102 | header.set_geo_ascii_params(sascii.size(), sascii.c_str()); | ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~ writeLAS.cpp:111:48: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'I32' (aka 'int') [-Wshorten-64-to-32] 111 | header.set_geo_double_params(sdouble.size(), &sdouble[0]); | ~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ writeLAS.cpp:120:39: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'I32' (aka 'int') [-Wshorten-64-to-32] 120 | header.set_geo_ogc_wkt(sWKT.size(), sWKT.c_str(), extended); | ~~~~~~~~~~~~~~~ ~~~~~^~~~~~ writeLAS.cpp:183:34: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'I32' (aka 'int') [-Wshorten-64-to-32] 183 | I32 stext_size = stext.size(); | ~~~~~~~~~~ ~~~~~~^~~~~~ 23 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c writeLAX.cpp -o writeLAX.o In file included from writeLAX.cpp:40: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:60: ./LASzip/mydefs.hpp:38:9: warning: '__STDC_FORMAT_MACROS' macro redefined [-Wmacro-redefined] 38 | #define __STDC_FORMAT_MACROS 1 | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/inttypes.h:251:13: note: previous definition is here 251 | # define __STDC_FORMAT_MACROS | ^ In file included from writeLAX.cpp:40: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: In file included from ./LASzip/laspoint.hpp:40: ./LASzip/lasattributer.hpp:78:27: warning: implicit conversion loses integer precision: 'U32' (aka 'unsigned int') to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 78 | this->data_type = type+1; | ~ ~~~~^~ ./LASzip/lasattributer.hpp:465:64: warning: implicit conversion loses integer precision: 'I32' (aka 'int') to 'I16' (aka 'short') [-Wimplicit-int-conversion] 465 | return (attributes ? attribute_starts[number_attributes-1] + attribute_sizes[number_attributes-1] : 0); | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from writeLAX.cpp:40: In file included from ./LASlib/lasreader.hpp:55: In file included from ./LASlib/lasdefinitions.hpp:63: ./LASzip/laspoint.hpp:206:99: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 206 | extended_classification_flags = ((other.withheld_flag) << 2) | ((other.keypoint_flag) << 1) | (other.synthetic_flag); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:222:118: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 222 | buffer[15] = (((U8*)&X)[14] & 0xC0) | (extended_scanner_channel << 4) | (extended_classification_flags & 0x08) | ((((U8*)&X)[15]) >> 5); | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ./LASzip/laspoint.hpp:249:43: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 249 | ((U8*)&X)[15] = (buffer[15] & 0x07) << 5; // legacy classification flags | ~ ~~~~~~~~~~~~~~~~~~~~^~~~ ./LASzip/laspoint.hpp:347:23: warning: implicit conversion loses integer precision: 'const U32' (aka 'const unsigned int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 347 | this->num_items = num_items; | ~ ^~~~~~~~~ ./LASzip/laspoint.hpp:600:136: warning: implicit conversion loses integer precision: 'int' to 'U8' (aka 'unsigned char') [-Wimplicit-int-conversion] 600 | inline void set_extended_overlap_flag(U8 extended_overlap_flag) { this->extended_classification_flags = (extended_overlap_flag << 3) | (this->extended_classification_flags & 7); }; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from writeLAX.cpp:40: In file included from ./LASlib/lasreader.hpp:55: ./LASlib/lasdefinitions.hpp:905:36: warning: implicit conversion loses integer precision: 'const I32' (aka 'const int') to 'U16' (aka 'unsigned short') [-Wimplicit-int-conversion] 905 | vlr_geo_keys->number_of_keys = number_of_keys; | ~ ^~~~~~~~~~~~~~ writeLAX.cpp:70:39: warning: implicit conversion loses floating-point precision: 'F64' (aka 'double') to 'float' [-Wimplicit-float-conversion] 70 | float w = lasreader->header.max_x - lasreader->header.min_x; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ writeLAX.cpp:71:39: warning: implicit conversion loses floating-point precision: 'F64' (aka 'double') to 'float' [-Wimplicit-float-conversion] 71 | float h = lasreader->header.max_y - lasreader->header.min_y; | ~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 11 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c fast.cpp -o fast.o fast.cpp:7:10: warning: implicit conversion loses integer precision: '__iter_diff_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 7 | return std::count(x.begin(), x.end(), t); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fast.cpp:13:10: warning: implicit conversion loses integer precision: 'typename iterator_traits::difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 13 | return std::count_if(x.begin(), x.end(), std::bind(std::less(), std::placeholders::_1, t)); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fast.cpp:19:10: warning: implicit conversion loses integer precision: 'typename iterator_traits::difference_type' (aka 'long') to 'int' [-Wshorten-64-to-32] 19 | return std::count_if(x.begin(), x.end(), std::bind(std::greater(), std::placeholders::_1, t)); | ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DNDEBUG -DUNORDERED -DHAVE_UNORDERED_MAP -I./ -I./LASlib/ -I./LASzip/ -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘rlas’ * removing ‘/Users/ripley/R/packages/tests-devel/rlas.Rcheck/rlas’