Browse files

Add 'static' to private function to avoid "Missing Function Prototype…

…s" warnings.
  • Loading branch information...
1 parent 8859b94 commit 6d6b8a5df02593f5e6637ad0540bc32a150dd0c8 @jerryhjones jerryhjones committed Dec 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 KGNoise.m
View
4 KGNoise.m
@@ -11,9 +11,9 @@
static NSUInteger const kImageSize = 128;
#if TARGET_OS_IPHONE
-CGFloat *gradientComponentsForColors(UIColor *color1, UIColor *color2){
+static CGFloat *gradientComponentsForColors(UIColor *color1, UIColor *color2){
#else
-CGFloat *gradientComponentsForColors(NSColor *color1, NSColor *color2){
+static CGFloat *gradientComponentsForColors(NSColor *color1, NSColor *color2){
#endif
CGFloat *components = malloc(8*sizeof(CGFloat));
const CGFloat *alternateBackgroundComponents = CGColorGetComponents([color1 CGColor]);

0 comments on commit 6d6b8a5

Please sign in to comment.