Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Fixed more build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
swisspol committed Jan 29, 2014
1 parent 0f2f22a commit 3665827
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CGDWebServer/GCDWebServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ @implementation GCDWebServer (Extensions)
- (BOOL)runWithPort:(NSUInteger)port {
BOOL success = NO;
_run = YES;
void* handler = signal(SIGINT, _SignalHandler);
void (*handler)(int) = signal(SIGINT, _SignalHandler);
if (handler != SIG_ERR) {
if ([self startWithPort:port bonjourName:@""]) {
while (_run) {
Expand Down
1 change: 1 addition & 0 deletions CGDWebServer/GCDWebServerPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/

#import <TargetConditionals.h>
#import <AvailabilityMacros.h>

#if __has_feature(objc_arc)
#define ARC_BRIDGE __bridge
Expand Down
2 changes: 1 addition & 1 deletion CGDWebServer/GCDWebServerResponse.m
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ - (id)initWithFile:(NSString*)path isAttachment:(BOOL)attachment {
type = kGCDWebServerDefaultMimeType;
}

if ((self = [super initWithContentType:type contentLength:info.st_size])) {
if ((self = [super initWithContentType:type contentLength:(NSUInteger)info.st_size])) {
_path = [path copy];
if (attachment) { // TODO: Use http://tools.ietf.org/html/rfc5987 to encode file names with special characters instead of using lossy conversion to ISO 8859-1
NSData* data = [[path lastPathComponent] dataUsingEncoding:NSISOLatin1StringEncoding allowLossyConversion:YES];
Expand Down
2 changes: 2 additions & 0 deletions iOS/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

@implementation AppDelegate

@synthesize window=_window;

#if !__has_feature(objc_arc)

- (void)dealloc {
Expand Down

0 comments on commit 3665827

Please sign in to comment.