-
Notifications
You must be signed in to change notification settings - Fork 466
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
Missing return statement from func declared as returning int. #85
Comments
Hi, I just checked using GCC 6 and do not see any errors or warnings. Looking this up online, it looks like the C99 standard permits not explicitly returning from I don't think there'd be an objection to adding an explicit return statement if you'd like to open a PR. |
i didn't attempt compilation - just eyeballed the code (and it failed that compilation check ;)). Adding an explicit return for a function declared as returning a value is simply The Right Thing To Do, main() or not. |
h3/examples/neighbors.c
Line 44 in 518b324
In my experience, only MS compilers won't complain about a missing return.
The text was updated successfully, but these errors were encountered: