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 generate autological-unsigned-zero-compare warning. #40

Closed
yunlia opened this issue Sep 21, 2017 · 1 comment
Closed

Clang generate autological-unsigned-zero-compare warning. #40

yunlia opened this issue Sep 21, 2017 · 1 comment

Comments

@yunlia
Copy link

yunlia commented Sep 21, 2017

TOT clang generates warnings like
shader-source.cc:424:18: comparison of unsigned enum expression >= 0
is always true [-Werror,-Wtautological-unsigned-zero-compare]

The patch in the attachment fixes the issue

clang-autological-unsigned-zero-compare.txt

@afrantzis
Copy link
Contributor

Thanks for the report. I have fixed this in a different way in aa17339, avoiding the problematic comparisons altogether.

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