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

warning when installing #111

Open
jugmac00 opened this issue Jun 8, 2021 · 1 comment
Open

warning when installing #111

jugmac00 opened this issue Jun 8, 2021 · 1 comment

Comments

@jugmac00
Copy link
Member

jugmac00 commented Jun 8, 2021

Getting distribution for 'AccessControl==5.0'.
src/AccessControl/cAccessControl.c:2202:7: warning: code will never be executed
[-Wunreachable-code]
unauthErr(name, v);
^~~~~~~~~

first reported in zopefoundation/BTrees#174

@jamadden
Copy link
Member

jamadden commented Jun 9, 2021

This is a statement after a return.

I can see why the compiler thinks that’s is unused (the compiler is right). I can also imagine, in context (a big switch statement, which in C, falls through), why a programmer might leave it there. Possibly the bigger function needs refactored.

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