Skip to content

Commit fbcf3fa

Browse files
committed
Fix build warning
1 parent 0f8e4f5 commit fbcf3fa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

GCDWebServer/Core/GCDWebServerConnection.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,10 @@ @implementation GCDWebServerConnection (Subclassing)
672672
- (BOOL)open {
673673
#ifdef __GCDWEBSERVER_ENABLE_TESTING__
674674
if (_server.recordingEnabled) {
675+
#pragma clang diagnostic push
676+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
675677
_connectionIndex = OSAtomicIncrement32(&_connectionCounter);
678+
#pragma clang diagnostic pop
676679

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

0 commit comments

Comments
 (0)