ros / dynamic_reconfigure

BSD 3-Clause "New" or "Revised" License
48 stars 111 forks source link

suppress unused-parameter compiler warnings #83

Closed meyerj closed 7 years ago

meyerj commented 7 years ago

...in specialized method implementation ParamDescription<std::string>::clamp().

This is required if user code is compiled with -Wunused-parameter, -Wunused or -Wall options. An alternative solution would be to omit the parameter names from the signature.

mikaelarguedas commented 7 years ago

I like the casting approach because it keeps the signature "meaningful" and let users know the semantic of the parameters (even if not used).

Thanks!