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

Plug up all non-void functions without return statements #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KungFuFurby
Copy link

This is related to #125. However, the focus here is more narrow.

Only a void function is allowed to have a return statement: otherwise, the warning can prove to be fatal post-compilation as the routine runs past the end of the code into some other undefined territory.

This commit should resolve every single instance of the warning "control may reach end of non-void function" (whether it always/sometimes does so or not).

These days the warning in question is known as "non-void function does not return a value", or "non-void function should return a value", depending on the context.

This merge request references #32.

Only a void function is allowed to have a return statement: otherwise, the warning can prove to be fatal post-compilation as the routine runs past the end of the code into some other undefined territory.

This commit should resolve every single instance of the warning "control may reach end of non-void function" (whether it always/sometimes does so or not).

This commit references bazz1tv#32.
In the process of cherry picking and updating the previous commit, a few others
were discovered to have slipped by upon testing the compilation with the latest
public version, 0.2.2. This has been corrected.

This commit mentions bazz1tv#32.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant