NSCAssert produces warning under -Wnullable-to-nonnull-conversion

Originator:jtbandes
Number:rdar://21374118 Date Originated:6/13/2015
Status:Duplicate/21291279 Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
Using NSCAssert produces a warning when -Wnullable-to-nonnull-conversion is enabled (the default under Xcode 7).

Steps to Reproduce:
Use NSCAssert(something, @"some string")

Expected Results:
No warning

Actual Results:
"error: implicit conversion from nullable pointer 'NSString * __nullable' to non-nullable pointer type 'NSString * __nonnull' [-Werror,-Wnullable-to-nonnull-conversion]"


Version:
Xcode 7 beta 1

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!