From 455c0a001e04446b1c409a1fe4d7a28905447cb6 Mon Sep 17 00:00:00 2001 From: GJ Nilsen Date: Mon, 10 Feb 2014 22:05:52 +0100 Subject: [PATCH] Fixing compiler warnings After upgrading to Xcode 5 and iOS 7.0 SDK, I got a compiler warning on line 95 and 160. Had to cast to (CGBitmapInfo) for the warning to go away. --- RNGridMenu.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RNGridMenu.m b/RNGridMenu.m index 8a0a1f5..7c08029 100644 --- a/RNGridMenu.m +++ b/RNGridMenu.m @@ -92,7 +92,7 @@ -(UIImage *)rn_boxblurImageWithBlur:(CGFloat)blur exclusionPath:(UIBezierPath *) // create grayscale image to mask context CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceGray(); - CGContextRef context = CGBitmapContextCreate(nil, maskLayer.bounds.size.width, maskLayer.bounds.size.height, 8, 0, colorSpace, kCGImageAlphaNone); + CGContextRef context = CGBitmapContextCreate(nil, maskLayer.bounds.size.width, maskLayer.bounds.size.height, 8, 0, colorSpace, (CGBitmapInfo)kCGImageAlphaNone); CGContextTranslateCTM(context, 0, maskLayer.bounds.size.height); CGContextScaleCTM(context, 1.f, -1.f); [maskLayer renderInContext:context]; @@ -157,7 +157,7 @@ -(UIImage *)rn_boxblurImageWithBlur:(CGFloat)blur exclusionPath:(UIBezierPath *) 8, outBuffer.rowBytes, colorSpace, - kCGImageAlphaNoneSkipLast); + (CGBitmapInfo)kCGImageAlphaNoneSkipLast); CGImageRef imageRef = CGBitmapContextCreateImage(ctx); UIImage *returnImage = [UIImage imageWithCGImage:imageRef];