Skip to content

Commit 582c0de

Browse files
committed
NFC: Add _Null_unspecified _swift_stdlib_getEnviron() declaration.
Makes the BSD and `__APPLE__` branches consistent and suppresses the following warning: ``` warning: pointer is missing a nullability type specifier ```
1 parent 11165f3 commit 582c0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SwiftShims/swift/shims/LibcOverlayShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static inline char * _Nullable * _Null_unspecified _swift_stdlib_getEnviron() {
5959
return environ;
6060
}
6161
#elif defined(__APPLE__)
62-
static inline char * _Nullable *_swift_stdlib_getEnviron() {
62+
static inline char * _Nullable * _Null_unspecified _swift_stdlib_getEnviron() {
6363
extern char * _Nullable **_NSGetEnviron(void);
6464
return *_NSGetEnviron();
6565
}

0 commit comments

Comments
 (0)