Re: How to stop warning?
Re: How to stop warning?
- Subject: Re: How to stop warning?
- From: Jens Alfke <email@hidden>
- Date: Wed, 10 Feb 2016 09:17:00 -0800
I’m subclassing and overriding methods on a Class that has nullable/non null syntax enabled. I getting a warning on the following declaration:
-(nullable LTWNodeInfo*) getNodeAtIndexPath:(nonnull NSIndexPath*) theIndexPath error:(NSError**) theErrorPtr;
That’s weird, because I’ve added nullability declarations on my public APIs, and I haven’t had to add any annotations on NSError** parameters.
I am putting NS_ASSUME_NONNULL_BEGIN above the declarations in each header and NS_ASSUME_NONNULL_END at the end. These macros expand to Clang pragmas. Maybe while in that mode the compiler knows that NSError** parameters are nullable? Are you using those macros?
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden