Skip to content

Realsense2 warnings fixed - #8821

Merged
maloel merged 7 commits into
realsenseai:developmentfrom
aseelegbaria:lr2warnings
Apr 19, 2021
Merged

Realsense2 warnings fixed#8821
maloel merged 7 commits into
realsenseai:developmentfrom
aseelegbaria:lr2warnings

Conversation

@aseelegbaria

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread common/utilities/time/work_week.cpp Outdated
{
if( ww == 0 || ww > work_weeks_between_years( year + 1, year ) )
{
unsigned int yearww = unsigned(work_weeks_between_years(year + 1, year));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put back into the next line

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread src/usb/usb-request.h Outdated
public:
virtual rs_usb_endpoint get_endpoint() const = 0;
virtual int get_actual_length() const = 0;
virtual uint64_t get_actual_length() const = 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dangerous -- and need to keep the type for "length" uniform -- so either int, size_t, or uint64_t
I prefer to keep int and not change interfaces for this. Please see if you can change the usages rather than the definition.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@maloel
maloel merged commit e99ee15 into realsenseai:development Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants