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

Backport macOS + Clang compiler error fix #2323

Merged
merged 1 commit into from Dec 29, 2022

Conversation

ChrisThrasher
Copy link
Member

@ChrisThrasher ChrisThrasher commented Dec 28, 2022

Description

This back ports 79250d9 / #2040 into 2.x. A user in the SFML Discord reported running into this issue trying to build the SFML CMake template with Clang (not AppleClang) so it seems to be a warning that Clang applies by default but because we don't test with non-Apple Clang on macOS our CI pipeline didn't catch it.

error: implicit conversion from 'size_t' (aka 'unsigned long') to 'CGFloat' (aka 'double') may lose precision [-Werror,-Wimplicit-int-float-conversion]
@ChrisThrasher ChrisThrasher added this to Discussion in SFML 2.6.0 via automation Dec 28, 2022
@ChrisThrasher ChrisThrasher added this to the 2.6 milestone Dec 28, 2022
@eXpl0it3r eXpl0it3r moved this from Discussion to Review & Testing in SFML 2.6.0 Dec 28, 2022
@ChrisThrasher ChrisThrasher changed the title Fixes the following compilation error Backport macOS + Clang compiler error fix Dec 28, 2022
@cppxor2arr
Copy link

This fixes the compiler error for me (macOS + Clang).

SFML 2.6.0 automation moved this from Review & Testing to Ready Dec 29, 2022
@eXpl0it3r eXpl0it3r merged commit 5e9bb60 into SFML:2.6.x Dec 29, 2022
SFML 2.6.0 automation moved this from Ready to Done Dec 29, 2022
@eXpl0it3r
Copy link
Member

Thanks for the backport!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
SFML 2.6.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants