You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
At Timehop we build our app with the -Weverything flag and the DeskApiClient produces a lot of warnings that we don't feel comfortable suppressing. We've created our own fork of this repo and have manually disabled this warning using #pragma clang diagnostic ignored in each offending file. But an ideal solution would be to fix the warnings.
To reproduce the problem you can add -Woverriding-method-mismatch to Other Warning Flags in the Xcode build settings.
The text was updated successfully, but these errors were encountered:
@mergesort We took a look at the warnings and they are not valid. We set the appropriate class at runtime of these DSAPIResource subclasses to match what's in the method names so these are fake warning. See
DSAPIResource.m, - (instancetype)initWithDictionary:(NSDictionary *)dictionary client:(DSAPIClient *)client
...
// Set the class of the object to the class returned by the web service for self
object_setClass(self, [self.client classForClassName:_dictionary[kLinksKey][kSelfKey][kClassKey]]);
It is safe to suppress them. We have no plans to add #pragma statements at this time to suppress this.
Instead of forking your own code to suppress these, we recommend you simply use Inhibit all warnings on the DeskAPIClient framework or pod.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
At Timehop we build our app with the
-Weverything
flag and the DeskApiClient produces a lot of warnings that we don't feel comfortable suppressing. We've created our own fork of this repo and have manually disabled this warning using#pragma clang diagnostic ignored
in each offending file. But an ideal solution would be to fix the warnings.To reproduce the problem you can add
-Woverriding-method-mismatch
toOther Warning Flags
in the Xcode build settings.The text was updated successfully, but these errors were encountered: