JSONKit 的幾個錯誤

 

 warning:   Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()

 

替換

 object->isa   object_getClass(object)

               object_setClass(id,object)

 

bit masking for introspection of objective-c 警告

#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wdeprecated-objc-pointer-introspection"

BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) &0x1)) ? YES : NO;

#pragma clang diagnostic pop

其他警告 %lu 替換 %u

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章