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
Fix -Wobjc-signed-char-bool-implicit-int-conversion issue #586
Conversation
I'm confused, what exactly is the warning complaining about? We're assigning a BOOL a Boolean expression. Can we remove the I really don't like the empty if statement in the availability check |
@NSExceptional I don't really understand the warning either. |
What happens if you remove the curly braces from inside the parenthesis instead? |
…eViewController It's an annoying warning and caused my local build to fail when treating warning as error. Let's just fix it.
We should in favor of using @available checks over |
@NSExceptional Good to merge now? |
There's nothing wrong with using NSProcessorInfo; the benefit of Anyway, I am not able to reproduce the warning at all. What happens if you remove the curly braces from inside the parenthesis instead of all this? I.E.: _manuallyDeactivateSearchOnDisappear = (
NSProcessInfo.processInfo.operatingSystemVersion.majorVersion < 11
); |
Also, it seems like you get a lot of warnings I don't get; what are you using to build FLEX? I would like to try it on my machine so I can catch these in advance 🤓 |
@NSExceptional I think there are many strict flags enabled internally, I think if you use For this specific error, you can see it's introduced by |
It's not ideal to check |
Merging this for now as it's just about style. We will remove those code when we deprecate iOS 11 and below. |
We won't be dropping iOS 11 until the tooling does, which will be a long time; Xcode stills supports iOS 9. Bleh, I don't really like this change, and I'm getting tired of not being able to see the same warnings as you 😕 Can you help me reproduce it? I am using Xcode 13.1 and I added the warning flags you mentioned and I was not seeing this warning. Can you tell me your entire build stack? Are you using Buck? Which version of Xcode / macOS are you on? Etc. I want to be able to reproduce the warning myself so I can get ahead of these things in the future. And as I said, |
Sorry if I sound angry, I'm not upset with you, just annoyed with Xcode that I can't see the same warnings as you 😫 Like why is it so inconsistent? lol |
@tinder-tannerbennett The error is returned on our server which has many settings so this might not be easily reproducible. However I'm just trying to be good citizen to fix potential error-prone syntax. The flags are the best thing I can provided to you here. I don't really think |
I just pushed a change to revert to the syntax you preferred. |
I'm being nitpicky, you didn't have to revert it 😅 My real concern is that I'm not able to reproduce the warning at all, so from my point of view it's a neutral or net-negative change. I believe you're seeing it, I just wish I could reproduce it. If you could pry and get me any further details about your build configuration, I would really appreciate it 🙏🏻 |
It's an annoying warning and caused my local build to fail when treating warning as error. Let's just fix it.
Error: