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

Comment out unused indent parameters #52

Merged
merged 2 commits into from
Nov 2, 2016

Conversation

mikepurvis
Copy link
Member

Silences a clang warning.

Copy link
Member

@dirk-thomas dirk-thomas left a comment

Choose a reason for hiding this comment

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

Please also rebase the patch against the latest branch kinetic-devel.

@@ -39,7 +39,7 @@ template<typename M>
struct Printer
{
template<typename Stream>
static void stream(Stream& s, const std::string& indent, const M& value)
static void stream(Stream& s, const std::string& /* indent */, const M& value)
Copy link
Member

Choose a reason for hiding this comment

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

Having the parameter name in the signature helps when looking at the API docs. Please add the following line at the beginning of the function body instead to make the variable not being unused anymore:

(void)indent

@dirk-thomas dirk-thomas changed the base branch from indigo-devel to kinetic-devel November 2, 2016 17:51
@dirk-thomas
Copy link
Member

It seems I was able to retarget the PR without needing any changes on your branch.

@dirk-thomas
Copy link
Member

Thanks for the patch.

@dirk-thomas dirk-thomas merged commit 5bedb97 into ros:kinetic-devel Nov 2, 2016
@mikepurvis mikepurvis deleted the patch-1 branch November 2, 2016 20:28
dirk-thomas pushed a commit that referenced this pull request Feb 28, 2017
* Comment out unused indent parameters

* Switched to use the void cast.
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.

None yet

2 participants