Skip to content

Commit

Permalink
fixed warnings with LLVM compiler (version 1.6)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimaryFeather committed Jan 19, 2011
1 parent 38cf86c commit 86c39ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sparrow/src/Classes/SPALSound.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ - (id)init
return nil;
}

- (id)initWithData:(void *)data size:(int)size channels:(int)channels frequency:(int)frequency
- (id)initWithData:(const void *)data size:(int)size channels:(int)channels frequency:(int)frequency
duration:(double)duration
{
if (self = [super init])
Expand Down
4 changes: 2 additions & 2 deletions sparrow/src/Classes/SPAudioEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ + (BOOL)initAudioSession:(SPAudioSessionCategory)category
result = AudioSessionInitialize(NULL, NULL, interruptionCallback, NULL);
if (result != kAudioSessionNoError)
{
NSLog(@"Could not initialize audio session: %x", result);
NSLog(@"Could not initialize audio session: %x", (unsigned int)result);
return NO;
}
sessionInitialized = YES;
Expand All @@ -103,7 +103,7 @@ + (BOOL)initAudioSession:(SPAudioSessionCategory)category
result = AudioSessionSetActive(YES);
if (result != kAudioSessionNoError)
{
NSLog(@"Could not activate audio session: %x", result);
NSLog(@"Could not activate audio session: %x", (unsigned int)result);
return NO;
}

Expand Down
2 changes: 1 addition & 1 deletion sparrow/src/Classes/SPPoolObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ + (int)purgePool
SPPoolObject *lastElement;

int count=0;
while (lastElement = poolInfo->lastElement)
while ((lastElement = poolInfo->lastElement))
{
++count;
poolInfo->lastElement = lastElement->mPoolPredecessor;
Expand Down
2 changes: 1 addition & 1 deletion sparrow/src/Classes/SPTextureAtlas.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
is provided with Sparrow. Here is a sample on how to use it:
# creates "atlas.xml" and "atlas.png" from the provided images
./generate_atlas.rb input/*.png output/atlas.xml
./generate_atlas.rb *.png output/atlas.xml
The atlas generator can be found in the 'utils' directory in the Sparrow package. A README file
shows you how to install and use it. If you want to have more control over your atlas, you will
Expand Down

0 comments on commit 86c39ca

Please sign in to comment.