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

Static-cast unused parameters in TransportTCP. #1195

Merged
merged 2 commits into from
Oct 20, 2017
Merged

Conversation

mikepurvis
Copy link
Member

Silences some warnings under macOS.

@@ -185,6 +185,8 @@ void TransportTCP::setKeepAlive(bool use, uint32_t idle, uint32_t interval, uint
{
ROS_DEBUG("setsockopt failed to set TCP_KEEPIDLE on socket [%d] [%s]", sock_, cached_remote_host_.c_str());
}
#else
static_cast<void>(idle);
Copy link
Member

Choose a reason for hiding this comment

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

Please use (void)idle; instead.

Similar below.

@dirk-thomas
Copy link
Member

Thanks.

@dirk-thomas dirk-thomas merged commit 6bb5446 into lunar-devel Oct 20, 2017
@dirk-thomas dirk-thomas deleted the unused-params branch October 20, 2017 22:20
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