Skip to content

Commit

Permalink
Fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
swisspol committed Jan 1, 2017
1 parent 0f8e4f5 commit fbcf3fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GCDWebServer/Core/GCDWebServerConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,10 @@ @implementation GCDWebServerConnection (Subclassing)
- (BOOL)open {
#ifdef __GCDWEBSERVER_ENABLE_TESTING__
if (_server.recordingEnabled) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
_connectionIndex = OSAtomicIncrement32(&_connectionCounter);
#pragma clang diagnostic pop

_requestPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];
_requestFD = open([_requestPath fileSystemRepresentation], O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
Expand Down

0 comments on commit fbcf3fa

Please sign in to comment.