skarpik / oscpack

Automatically exported from code.google.com/p/oscpack
Other
0 stars 0 forks source link

Easy fix to suppress unused parameter warnings. #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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