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

Clang warnings: comparison of unsigned expression < 0 is always false #68

Open
yurivict opened this issue Jul 18, 2017 · 0 comments
Open

Comments

@yurivict
Copy link
Contributor

Among other warnings, these two seem potentially damaging:

midiport.c:160:11: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (time < 0 || time >= info->nframes) {
            ~~~~ ^ ~
engine.c:4493:31: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (req->x.port_info.port_id < 0 ||
            ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
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

1 participant