-
Notifications
You must be signed in to change notification settings - Fork 171
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
refactor: fix conversion warnings on Clang #245
Conversation
Could you explain how you're getting these warnings? I could not observe them no matter what I tried, for example: $ clang++ -Werror -Wall -Wextra -I. -I../sfml/include -I../cimgui/imgui examples/minimal/main.cpp imgui-SFML.cpp -c
$ CC=clang CXX=clang++ cmake -DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra" . -DIMGUI_DIR=../imgui -DSFML_DIR=../sfml && cmake --build .
-- Found SFML 2.6.0 in ../sfml
-- Found ImGui v1.89.8 WIP in ../imgui
|
$ clang++ --version
clang version 15.0.7
Target: x86_64-pc-linux-gnu |
It's probably |
Ah yes thanks. Needed both |
Hm I think the float conversion ones are totally harmless. Up to 224, Perhaps fixing and enforcing |
I'm using Clang 17, and my command lines don't have |
The way I went about it was doing what others did: https://github.com/search?q=repo%3ASFML%2Fimgui-sfml+warnings&type=pullrequests. |
Coincidentally I also have a compiler warning related PR but this time I'm actually adding the warnings to the build script so we don't regress with compiler warnings. See #246. |
f08c2b4
to
f2b20b6
Compare
I started fixing these conversion warnings. MSVC caught a few to begin with. |
Previously: