diff --git a/src/ds/d400/d400-auto-calibration.cpp b/src/ds/d400/d400-auto-calibration.cpp index 1e1f2f0610..e195c4de1f 100644 --- a/src/ds/d400/d400-auto-calibration.cpp +++ b/src/ds/d400/d400-auto-calibration.cpp @@ -1552,8 +1552,8 @@ namespace librealsense std::shared_ptr auto_calibrated::change_preset() { - preset old_preset_values; - rs2_rs400_visual_preset old_preset; + preset old_preset_values{}; + rs2_rs400_visual_preset old_preset = { RS2_RS400_VISUAL_PRESET_DEFAULT }; auto advanced_mode = dynamic_cast(this); if (advanced_mode) @@ -1882,7 +1882,7 @@ namespace librealsense fy = intrin.fy; } - std::array rec_sides_cur; + std::array< float, 4 > rec_sides_cur{}; rs2_extract_target_dimensions(f, RS2_CALIB_TARGET_ROI_RECT_GAUSSIAN_DOT_VERTICES, rec_sides_cur.data(), 4, &e); if (e) throw std::runtime_error("Failed to extract target information\nfrom the captured frames!"); diff --git a/src/fw-logs/fw-log-data.h b/src/fw-logs/fw-log-data.h index 5db0733c43..e8f02495bb 100644 --- a/src/fw-logs/fw-log-data.h +++ b/src/fw-logs/fw-log-data.h @@ -74,8 +74,8 @@ namespace librealsense class fw_log_data { public: - fw_log_data(void); - ~fw_log_data(void); + fw_log_data(); + ~fw_log_data(); uint32_t _magic_number; uint32_t _severity; diff --git a/src/linux/backend-v4l2.cpp b/src/linux/backend-v4l2.cpp index 6f9446c765..f2e0da7e7b 100644 --- a/src/linux/backend-v4l2.cpp +++ b/src/linux/backend-v4l2.cpp @@ -862,7 +862,7 @@ namespace librealsense // Get DFU node for MIPI camera vfd = open(dfu_device_path.c_str(), O_RDONLY | O_NONBLOCK); - if (vfd > 0) { + if (vfd >= 0) { ::close(vfd); // file exists, close file and continue to assign it info.dfu_device_path = dfu_device_path; }