Skip to content

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