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

Add -Wno-conversion C flag to suppress "Implicit conversion loses integer precision" warnings on iOS #3

Closed
wants to merge 2 commits into from

Conversation

lapfelix
Copy link

@lapfelix lapfelix commented Nov 3, 2023

To fix firebase/firebase-ios-sdk#12043 I added the -Wno-conversion C flag.

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but Swift Package Manager does not allow versioned libraries to use .unsafeFlags.

See https://forums.swift.org/t/override-for-unsafeflags-in-swift-package-manager/45273

@lapfelix
Copy link
Author

lapfelix commented Nov 3, 2023

Ah wow, so that's why it worked for me. So the best (only?) solution here would be to actually modify the code to fix the warnings (which would then complicate future updates from the main branch, if that's ever done)

@lapfelix
Copy link
Author

lapfelix commented Nov 3, 2023

Would this be good enough? #4

@lapfelix lapfelix closed this Nov 3, 2023
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

Successfully merging this pull request may close these issues.

2 participants