Skip to content

Commit

Permalink
fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Dec 6, 2022
1 parent 97294a6 commit 2bd2543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ds5/ds5-options.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ namespace librealsense
virtual float query() const override;
virtual option_range get_range() const override;
virtual bool is_enabled() const override { return true; }
virtual bool is_read_only() const { return _sensor && _sensor->is_opened(); }
virtual bool is_read_only() const override { return _sensor && _sensor->is_opened(); }
const char* get_description() const override;

void enable_recording(std::function<void(const option &)> record_action) override
Expand Down
2 changes: 1 addition & 1 deletion src/fw-update/fw-update-device-interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace librealsense
{
auto version_offset = offsetof(platform::dfu_header, bcdDevice);
if (fw_image.size() < (version_offset + sizeof(size_t)))
throw std::runtime_error("Firmware binary image might be corrupted - size is only: " + fw_image.size());
throw std::runtime_error("Firmware binary image might be corrupted - size is only: " + std::to_string( fw_image.size() ));

auto version = fw_image.data() + version_offset;
uint8_t major = *(version + 3);
Expand Down

0 comments on commit 2bd2543

Please sign in to comment.