Fix build warnings 54/298154/1
authorKwanghoon Son <k.son@samsung.com>
Fri, 1 Sep 2023 08:27:49 +0000 (17:27 +0900)
committerKwanghoon Son <k.son@samsung.com>
Fri, 1 Sep 2023 08:27:49 +0000 (17:27 +0900)
Change-Id: I180eeca73b7b95c66bbc65d93afbef9ed98e08e5
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
mv_machine_learning/landmark_detection/src/LandmarkDetectionParser.cpp
test/testsuites/mv3d/depthstream_test_suite.cpp
test/testsuites/mv3d/test_3d.cpp

index 0fc38ede5acd1bc99a99743a7407ded68083bb59..614aa26af2acd6a480a5509b0c858fe149d32014 100644 (file)
@@ -37,7 +37,6 @@ LandmarkDetectionParser::~LandmarkDetectionParser()
 
 void LandmarkDetectionParser::setTaskType(int type)
 {
-       LandmarkDetectionTaskType task_type = static_cast<LandmarkDetectionTaskType>(type);
        // TODO.
 }
 
index c00c8b074a728416bf68b9493d6d623caed5437f..3ab83b199abfd52a6316d230c09e90074ac99947 100644 (file)
@@ -211,7 +211,7 @@ static int _vision_source_cb(media_packet_h packet, void *user_data)
        media_packet_get_video_stride_width(packet, 0, &stride_w);
        media_packet_get_video_plane_data_ptr(packet, 0, (void **) (&plane_data_ptr));
 
-       for (unsigned int h = 0; h < height; h++) {
+       for (int h = 0; h < height; h++) {
                memcpy(app->buffer + width * h, plane_data_ptr + stride_w * h, width);
        }
 
index ef12270f0b17f869c05a6edb70fe57af979f5bfb..93ff725d5af5cdad093e28a9fc268792d9ec2174 100644 (file)
@@ -181,7 +181,7 @@ static void _pointcloud_write_file_cb(mv_source_h source, mv_3d_pointcloud_h poi
        mv3dTestsFixture->mIsPointCloudCallbackInvoked = true;
 
        int ret = mv_3d_pointcloud_write_file(mv3dTestsFixture->mDepthHandle, pointcloud, MV_3D_POINTCLOUD_TYPE_PCD_BIN,
-                                                                                 PCD_WRITE_FILENAME);
+                                                                                 (char *) PCD_WRITE_FILENAME);
        if (ret == MEDIA_VISION_ERROR_NONE)
                mv3dTestsFixture->mIsPointCloudWriteSuccess = true;
 }