Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gcc warnings #1295

Merged
merged 3 commits into from
Oct 11, 2018
Merged

Conversation

rhaschke
Copy link
Contributor

@rhaschke rhaschke commented Oct 4, 2018

This PR fixes several compiler warnings cluttering my console...

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

LGTM, I just have one small comment about the (int) cast.

@@ -704,7 +701,7 @@ void MapDisplay::showMap()
}

bool map_status_set = false;
if( width * height != current_map_.data.size() )
if( width * height != (int)current_map_.data.size() )
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: you could avoid the C-style cast and use static_cast<int>

@rhaschke
Copy link
Contributor Author

Changed, to use static_cast<int>() as suggested.

@chapulina chapulina merged commit 4b6c0f4 into ros-visualization:melodic-devel Oct 11, 2018
@rhaschke rhaschke deleted the fix-warnings branch October 18, 2018 15:46
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