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

Unreachable code in native_receive() #12

Open
ghenry opened this issue Feb 3, 2022 · 2 comments
Open

Unreachable code in native_receive() #12

ghenry opened this issue Feb 3, 2022 · 2 comments

Comments

@ghenry
Copy link
Collaborator

ghenry commented Feb 3, 2022

These three lines can be deleted as while(1)

mcrx_subscription_unref(sub);

@GrumpyOldTroll
Copy link
Owner

True, but some tools and compilers complain if there's no return at the end I think, and if some later change makes that return possible, I'd want the other 2 lines present. Which tool was this from, and is there maybe a way to mark it as "ignore this known unreachable code"?

@ghenry
Copy link
Collaborator Author

ghenry commented Feb 18, 2022 via email

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

No branches or pull requests

2 participants