Skip to content

Commit 32fe306

Browse files
Darwin: Avoid making the compiler sad
1 parent 9af93fd commit 32fe306

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/platform/Darwin/Logging.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ __attribute__((const)) void * LoggerForModule(LogModule moduleId);
8686
do \
8787
{ \
8888
_Pragma("clang diagnostic push"); \
89-
_Pragma("clang diagnostic ignored \"-Wshadow\""); \
90-
using os_log_t = ::os_log_t __unsafe_unretained; \
89+
_Pragma("clang diagnostic ignored \"-Wshadow\"") /* issue #39135 */ using os_log_t = ::os_log_t __unsafe_unretained; \
9190
os_log_with_type((__bridge os_log_t) log, type, fmt, ##__VA_ARGS__); \
9291
_Pragma("clang diagnostic pop"); \
9392
} while (0)

0 commit comments

Comments
 (0)