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

Fix function where not all code paths return a value #21

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

Vurv78
Copy link
Contributor

@Vurv78 Vurv78 commented Nov 12, 2023

New change in the compiler to userfunctions ensures they return something at compile time for performance. This function was missing a return in case all the if statements failed

@AlexALX

wiremod/wire#2841

New change to function ensures they return something at compile time for performance. This function was missing a return in case all the if statements failed

wiremod/wire#2841
@Vurv78 Vurv78 changed the title Fix function not call code paths return a value Fix function where not all code paths return a value Nov 12, 2023
@Vurv78
Copy link
Contributor Author

Vurv78 commented Nov 12, 2023

Can also just put an explicit error there in case you don't want to handle this codepath, it should've errored there anyway in old e2

@AlexALX AlexALX merged commit 7fca7ca into AlexALX:master Nov 16, 2023
@Vurv78 Vurv78 deleted the fix-return branch November 16, 2023 10:11
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.

2 participants