From 250b29fe4085f2c0bc614c21fb36ba24b6876e13 Mon Sep 17 00:00:00 2001 From: Magician Date: Sun, 3 Aug 2014 20:04:31 +0200 Subject: [PATCH] Fixes two warnings --- cocos2d-ui/CCBReader/CCAnimationManager.m | 2 +- cocos2d-ui/CCBReader/CCBReader.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;