Skip to content

Commit 4728433

Browse files
committed
fix returns, datatypes to silence compiler
1 parent ecd9d5f commit 4728433

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

include/patchworkpp/utils.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ POINT_CLOUD_REGISTER_POINT_STRUCT(PointXYZILID,
6565
(float, y, y)
6666
(float, z, z)
6767
(float, intensity, intensity)
68-
(uint16_t, label, label)
69-
(uint16_t, id, id))
68+
(std::uint16_t, label, label)
69+
(std::uint16_t, id, id))
7070

7171

7272
void PointXYZILID2XYZI(pcl::PointCloud<PointXYZILID>& src,
@@ -240,7 +240,7 @@ void calculate_precision_recall_without_vegetation(const pcl::PointCloud<PointXY
240240
}
241241

242242

243-
int save_all_labels(const pcl::PointCloud<PointXYZILID>& pc, string ABS_DIR, string seq, int count){
243+
void save_all_labels(const pcl::PointCloud<PointXYZILID>& pc, string ABS_DIR, string seq, int count){
244244

245245
std::string count_str = std::to_string(count);
246246
std::string count_str_padded = std::string(NUM_ZEROS - count_str.length(), '0') + count_str;

include/tools/kitti_loader.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ class KittiLoader {
9292
}
9393

9494
}
95+
96+
return 0;
9597
}
9698

9799
private:

0 commit comments

Comments
 (0)