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

Easy fix to suppress unused parameter warnings. #13

Open
GoogleCodeExporter opened this issue Aug 25, 2015 · 0 comments
Open

Easy fix to suppress unused parameter warnings. #13

GoogleCodeExporter opened this issue Aug 25, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Totally picayune, but thought you might want to know.

Example in the code is here:  
https://code.google.com/p/oscpack/source/browse/trunk/examples/SimpleSend.cpp#16

If you have parameters to e.g. main that you never use, you can avoid warnings 
under all C++ compilers that I'm aware of by simply not naming those 
parameters, like this:

    int main(int, char*[]) {
      // ...

Thanks for what so far appears to be an elegant and high-quality library.

Original issue reported on code.google.com by tom.ritc...@gmail.com on 10 Jun 2013 at 5:51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant