代码:如何沉默Xcode 64位/ 32位警告,或更好的解决它们?
#define ASSERT_INDEX_IS_WITHIN_BOUNDS(idx,array)
NSAssert2(idx >= 0 && idx <= (self.array.count-1), @"index %d beyond bounds [0 .. %d]", idx, (self.array.count-1))
上述宏导致以下警告:类型NSUInteger'的
值不应该被用作格式参数;相反,将明确的强制转换添加到'unsigned long'。
这是第三方代码,并有负载这些。我如何沉默/修复它们?
只适用于32位? –
@MichaelDautermann针对iPhone 5S。 – duci9y
从长远来看,最好让它们得到修复;) –