We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
void
from: http://port70.net/~nsz/c/c99/n1256.html#6.11.6
The use of function declarators with empty parentheses (not prototype-format parameter type declarators) is an obsolescent feature.
and this SO answer suggest you should use void in the function parameter definition to explicitly say the function does not take any arguments.
Therefore, should these two functions be changed to use void, as in:
//h3Index.c int H3_EXPORT(pentagonCount)(void) { return NUM_PENTAGONS; } //baseCells.c int H3_EXPORT(res0CellCount)(void) { return NUM_BASE_CELLS; }
The text was updated successfully, but these errors were encountered:
explicitly state parameters are , uber#787
009756c
(void)
explicitly state parameters are (void), uber#787
cc93f5e
Thanks for flagging this. I agree, it looks like they should be defined as (void). I opened a PR, #788 to change that.
Sorry, something went wrong.
explicitly state parameters are (void), #787 (#788)
a8f2a8a
* explicitly state parameters are `(void)`, #787 * additional cases to mark void * fix2
Successfully merging a pull request may close this issue.
from: http://port70.net/~nsz/c/c99/n1256.html#6.11.6
and this SO answer suggest you should use
void
in the function parameter definition to explicitly say the function does not take any arguments.Therefore, should these two functions be changed to use
void
, as in:The text was updated successfully, but these errors were encountered: