Fix warnings in issue #50

Please help review whether these fixes is valid, thanks.

Also I also found some issues in submodules, I'm not that familiar how to work with github submodule, is that I need to send separate pull request for the submodules? Would you mind provide some advice, thanks.

In cocos2d-iphone, diff here:
```
chn-j-liu-ssd:cocos2d-iphone j.liu$ git diff
diff --git a/cocos2d/CCRenderTexture.m b/cocos2d/CCRenderTexture.m
index f63afd8..cdbbda8 100644
--- a/cocos2d/CCRenderTexture.m
+++ b/cocos2d/CCRenderTexture.m
@@ -497,17 +497,18 @@
        
        CFURLRef url = (CFURLRef)[NSURL fileURLWithPath:fullPath];
        
-       CGImageDestinationRef dest;
+       CGImageDestinationRef dest = NULL;
 
-       if( format == kCCImageFormatPNG )
+       if( format == kCCImageFormatPNG ) {
                dest =  CGImageDestinationCreateWithURL(url, kUTTypePNG, 1, NULL);
 
-       else if( format == kCCImageFormatJPEG )
+       }else if( format == kCCImageFormatJPEG ){
                dest =  CGImageDestinationCreateWithURL(url, kUTTypeJPEG, 1, NULL);
 
-       else
+       }else{
                NSAssert(NO, @"Unsupported format");
-
+    }
+    
        CGImageDestinationAddImage(dest, imageRef, nil);
                
        success = CGImageDestinationFinalize(dest);
```

Also warnings here in Fragaria, diff here: 

```
chn-j-liu-ssd:Fragaria j.liu$ git diff
diff --git a/MGSFragaria.h b/MGSFragaria.h
index 4404b8f..fc0c5ae 100644
--- a/MGSFragaria.h
+++ b/MGSFragaria.h
@@ -59,7 +59,6 @@ extern NSString * const ro_MGSFOSyntaxColouring; // readonly
 + (NSString *)stringForDocSpec:(id)docSpec;
 + (NSAttributedString *)attributedStringForDocSpec:(id)docSpec;
 + (NSAttributedString *)attributedStringWithTemporaryAttributesAppliedForDocSpec:(id)docSpec;
-+ (NSString *)stringForDocSpec:(id)docSpec;
 
 - (id)initWithObject:(id)object;
 - (void)setObject:(id)object forKey:(id)key;
```

And here in CCBReader, diff here:

```
chn-j-liu-ssd:CCBReader j.liu$ git diff
diff --git a/CCControlExtension/CCControl/CCControl.m b/CCControlExtension/CCControl/CCControl.m
index 878bb01..8c3bd67 100755
--- a/CCControlExtension/CCControl/CCControl.m
+++ b/CCControlExtension/CCControl/CCControl.m
@@ -120,6 +120,10 @@
 @synthesize opacity                 = opacity_;
 @synthesize color                   = color_;
 @synthesize opacityModifyRGB        = opacityModifyRGB_;
+@synthesize displayedColor          = displayedColor_;
+@synthesize cascadeColorEnabled     = cascadeColorEnabled_;
+@synthesize displayedOpacity        = displayedOpacity_;
+@synthesize cascadeOpacityEnabled   = cascadeOpacityEnabled_;
 
 - (void)dealloc
 {
@@ -198,6 +202,11 @@
     }
 }
 
+- (void) updateDisplayedColor:(ccColor3B)color
+{
+    [self setColor:color];
+}
+
 - (void)setOpacity:(GLubyte)opacity
 {
     opacity_ = opacity;
@@ -208,6 +217,11 @@
     }
 }
 
+- (void) updateDisplayedOpacity:(GLubyte)opacity
+{
+    [self setOpacity:opacity];
+}
+
 - (void)setOpacityModifyRGB:(BOOL)opacityModifyRGB
 {
     opacityModifyRGB_ = opacityModifyRGB;
diff --git a/CCControlExtension/CCControl/Utils/CCScale9Sprite.m b/CCControlExtension/CCControl/Utils/CCScale9Sprite.m
index 6c656c1..06fccb3 100755
--- a/CCControlExtension/CCControl/Utils/CCScale9Sprite.m
+++ b/CCControlExtension/CCControl/Utils/CCScale9Sprite.m
@@ -28,16 +28,20 @@ enum positions
 @end
 
 @implementation CCScale9Sprite
-@synthesize originalSize        = originalSize_;
-@synthesize capInsets           = capInsets_;
-@synthesize opacity             = opacity_;
-@synthesize color               = color_;
-@synthesize opacityModifyRGB    = opacityModifyRGB_;
-@synthesize insetTop            = insetTop_;
-@synthesize insetLeft           = insetLeft_;
-@synthesize insetBottom         = insetBottom_;
-@synthesize insetRight          = insetRight_;
-@synthesize preferedSize        = preferedSize_;
+@synthesize originalSize            = originalSize_;
+@synthesize capInsets               = capInsets_;
+@synthesize opacity                 = opacity_;
+@synthesize color                   = color_;
+@synthesize opacityModifyRGB        = opacityModifyRGB_;
+@synthesize insetTop                = insetTop_;
+@synthesize insetLeft               = insetLeft_;
+@synthesize insetBottom             = insetBottom_;
+@synthesize insetRight              = insetRight_;
+@synthesize preferedSize            = preferedSize_;
+@synthesize displayedColor          = displayedColor_;
+@synthesize cascadeColorEnabled     = cascadeColorEnabled_;
+@synthesize displayedOpacity        = displayedOpacity_;
+@synthesize cascadeOpacityEnabled   = cascadeOpacityEnabled_;
 
 - (void)dealloc
 {
@@ -534,6 +538,11 @@ enum positions
     }
 }
 
+- (void) updateDisplayedColor:(ccColor3B)color
+{
+    [self setColor:color];
+}
+
 - (void)setOpacity:(GLubyte)opacity
 {
     opacity_    = opacity;
@@ -544,6 +553,11 @@ enum positions
     }
 }
 
+- (void) updateDisplayedOpacity:(GLubyte)opacity
+{
+    [self setOpacity:opacity];
+}
+
 - (void)setOpacityModifyRGB:(BOOL)boolean
 {
     opacityModifyRGB_ = boolean;
```