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

fexc.c:71: bad if test ? #29

Closed
dcb314 opened this issue Jul 30, 2014 · 0 comments
Closed

fexc.c:71: bad if test ? #29

dcb314 opened this issue Jul 30, 2014 · 0 comments

Comments

@dcb314
Copy link

dcb314 commented Jul 30, 2014

fexc.c:71:30: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op]

Source code is

    } else if (errno != EAGAIN ||
           errno != EINTR) {

Suggest swap || for &&

kosteltsev pushed a commit to kosteltsev/sunxi-tools that referenced this issue Jul 30, 2014
amery pushed a commit that referenced this issue Aug 2, 2014
@amery amery closed this as completed Aug 2, 2014
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