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

Commit 06569fe

Browse files
committed
Fixed NS_ASSUME_NONNULL_BEGIN not located at the right place in GCDWebServerPrivate.h
1 parent e812d3f commit 06569fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GCDWebServer/Core/GCDWebServerPrivate.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
#import "GCDWebServerFileResponse.h"
4949
#import "GCDWebServerStreamedResponse.h"
5050

51-
NS_ASSUME_NONNULL_BEGIN
52-
5351
/**
5452
* Check if a custom logging facility should be used instead.
5553
*/
@@ -101,7 +99,7 @@ typedef NS_ENUM(int, GCDWebServerLoggingLevel) {
10199
};
102100

103101
extern GCDWebServerLoggingLevel GCDWebServerLogLevel;
104-
extern void GCDWebServerLogMessage(GCDWebServerLoggingLevel level, NSString* format, ...) NS_FORMAT_FUNCTION(2, 3);
102+
extern void GCDWebServerLogMessage(GCDWebServerLoggingLevel level, NSString* _Nonnull format, ...) NS_FORMAT_FUNCTION(2, 3);
105103

106104
#if DEBUG
107105
#define GWS_LOG_DEBUG(...) \
@@ -155,6 +153,8 @@ extern void GCDWebServerLogMessage(GCDWebServerLoggingLevel level, NSString* for
155153

156154
#endif
157155

156+
NS_ASSUME_NONNULL_BEGIN
157+
158158
/**
159159
* GCDWebServer internal constants and APIs.
160160
*/

0 commit comments

Comments
 (0)