diff --git a/cocos2d-ui/CCBReader/CCAnimationManager.m b/cocos2d-ui/CCBReader/CCAnimationManager.m index cd288b4ac07..d868240245c 100644 --- a/cocos2d-ui/CCBReader/CCAnimationManager.m +++ b/cocos2d-ui/CCBReader/CCAnimationManager.m @@ -94,7 +94,7 @@ - (void)addNode:(CCNode*)node andSequences:(NSDictionary*)seq { if(seqProp.keyframes.count > 0) { - CCBKeyframe * keyFrameZero = seqProp.keyframes[0]; + CCBKeyframe __attribute__((unused)) *keyFrameZero = seqProp.keyframes[0]; NSAssert(keyFrameZero.time == 0.0f, @"The first keyframe should always be at time Zero."); } diff --git a/cocos2d-ui/CCBReader/CCBReader.m b/cocos2d-ui/CCBReader/CCBReader.m index bb8b6c31a7c..86cbc8b0568 100644 --- a/cocos2d-ui/CCBReader/CCBReader.m +++ b/cocos2d-ui/CCBReader/CCBReader.m @@ -159,7 +159,7 @@ static inline void alignBits(CCBReader *self) } -static inline unsigned int readVariableLengthIntFromArray(const uint8_t* buffer, uint32_t * value) { +static inline ptrdiff_t readVariableLengthIntFromArray(const uint8_t* buffer, uint32_t * value) { const uint8_t* ptr = buffer; uint32_t b; uint32_t result;