The clang parameter to disable this warning is -Wno-objc-literal-compare .
However, warnings exist for some reason; this is because comparing with NSString literals using == does not guarantee that it will behave as you would expect. Instead, use isEqual: or isEqualToString: and you can both get rid of this warning and prevent this turn from turning into an error for you later.
rickster
source share