Closed kjs73 closed 10 years ago
will other compilers give an error?
another option is to leave the parameter unnamed in the function declaration
def func(double x, double){
return x
}
Ah, that sounds like a much better option!
Should we merge this before it causes conflicts later?
looks good
This silences some compiler warnings about unused parameters. There is some discussion on the issue here: http://stackoverflow.com/questions/3599160/unused-parameter-warnings-in-c-code It seemed fine to me to take the version that is safest but probably only works in gcc, because we are using other gcc specific features as well. Otherwise the most general thing is apparently the macro solution.