I want to use #pragma
(in Xcode) to suppress the warning:
warning: instance method '-someMethod' not found (return type defaults to 'id')
I've tried:
#pragma GCC diagnostic ignored "-Wmissing-declarations"
And several others, but nothing works.
What warning causes the "instance method not found"?
Edit
As requested here is the actual code:
...
if (sampleRate > 0 && ![self isFinishing]) //<--- Warning here
{
return self.progress;
}
...
And the build log output:
/Users/User1/Documents/Project/branch/client/Folder/CodeFile.m:26:32:{26:32-26:50}: warning: instance method '-isFinishing' not found (return type defaults to 'id') [3]
if (sampleRate > 0 && ![self isFinishing])
^~~~~~~~~~~~~~~~~~
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…