We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From the Magical Record repo.
#pragma clang diagnostic push #pragma clang diagnostic ignored \ "-Warc-performSelector-leaks" if (implementsShouldImport && !(BOOL)[self performSelector:shouldImportSelector withObject:relatedObjectData]) { continue; } #pragma clang diagnostic pop
#pragma clang diagnostic push
if (implementsShouldImport) { IMP shouldImportImplementation = [self methodForSelector:shouldImportSelector]; BOOL (*func)(id, shouldImportSelector, id) = (void *)shouldImportImplementation; if (!func(id, shouldImportSelector, relatedObjectData)) { continue; } }
Resulting in two errors:
Type specifier missing, defaults to 'int'
BOOL (*func)(id, shouldImportSelector, id) = (void *)shouldImportImplementation;
Unexpected type name 'id': expected expression
if (!func(id, shouldImportSelector, relatedObjectData)) {
How to get rid of "Warc-performSelector-leaks" warning.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How to get rid of "-Warc-performSelector-leaks" warning with a argument based selector
Old code resulting in deprecation error with Xcode12.5
From the Magical Record repo.
Note: Ignoring the warning with
#pragma clang diagnostic push
isn't working.Updated Logic
Resulting in two errors:
Type specifier missing, defaults to 'int'
forBOOL (*func)(id, shouldImportSelector, id) = (void *)shouldImportImplementation;
Unexpected type name 'id': expected expression
for lineif (!func(id, shouldImportSelector, relatedObjectData)) {
Adopting the answer here
How to get rid of "Warc-performSelector-leaks" warning.
Magical Record is unmaintained open source library that is resulting in error with Xcode12.5 compilation.
The text was updated successfully, but these errors were encountered: