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 10 compile issue #36510

Closed
gregoranders opened this issue Dec 28, 2019 · 0 comments · Fixed by #38886
Closed

clang 10 compile issue #36510

gregoranders opened this issue Dec 28, 2019 · 0 comments · Fixed by #38886
Labels
<Bug> This needs to be fixed Code: Build Issues regarding different builds and build environments

Comments

@gregoranders
Copy link
Contributor

Describe the bug

Clang 10 compile issue.
[ 32%] Building CXX object src/CMakeFiles/libcataclysm-tiles.dir/loading_ui.cpp.o /home/developer/GitHub/gregoranders/Cataclysm-DDA.source/src/lightmap.cpp:1209:49: error: implicit conversion from 'int' to 'float' changes value from 1056478197 to 1056478208 [-Werror,-Wimplicit-int-float-conversion] u.i = static_cast<long long>( 6051102 * x + 1056478197 ); ~ ^~~~~~~~~~ /home/developer/GitHub/gregoranders/Cataclysm-DDA.source/src/lightmap.cpp:1210:35: error: implicit conversion from 'int' to 'float' changes value from 1056478197 to 1056478208 [-Werror,-Wimplicit-int-float-conversion] v.i = static_cast<long long>( 1056478197 - 6051102 * x ); ^~~~~~~~~~ ~ 2 errors generated. make[2]: *** [src/CMakeFiles/libcataclysm-tiles.dir/build.make:1549: src/CMakeFiles/libcataclysm-tiles.dir/lightmap.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs....

Steps To Reproduce

compile with clang 10

Versions and configuration

Commit: f8ba267

clang version 10.0.0 (/var/tmp/portage/sys-devel/clang-10.0.0.9999/work/x/y/clang)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin

@Night-Pryanik Night-Pryanik added <Bug> This needs to be fixed Code: Build Issues regarding different builds and build environments labels Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Code: Build Issues regarding different builds and build environments
Projects
None yet
2 participants