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

dangling else warning #65

Closed
casseveritt opened this issue Dec 29, 2014 · 3 comments
Closed

dangling else warning #65

casseveritt opened this issue Dec 29, 2014 · 3 comments

Comments

@casseveritt
Copy link

I see this warning with clang++ with the latest in master.

./stb_image.h:1729:22: warning: add explicit braces to avoid dangling else [-Wdangling-else]
./stb_image.h:1765:25: warning: add explicit braces to avoid dangling else [-Wdangling-else]

clang++ --version
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

@nothings
Copy link
Owner

bah!

@ocornut
Copy link
Contributor

ocornut commented Jan 12, 2015

fyi

I had a lot of recurring warnings with compilers I didn't use (e.g. gcc), setting up a Travis ( http://travis-ci.org ) really helped to catch them early.

Here's my travis setup, straightforward:
https://github.com/ocornut/imgui/blob/master/.travis.yml

@nothings
Copy link
Owner

Merged enginmanap's pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants