Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed warnings for missing function prototypes #7

Merged
merged 1 commit into from

2 participants

@jerryhjones

Because gradientComponentsForColors is not defined in a header file anywhere, LLVM issues a warning under Missing Function Prototypes. When treating warnings as errors, this was problematic.

@kgn kgn merged commit cf6ceff into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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]);
Something went wrong with that request. Please try again.