Skip to content

Commit 04852d0

Browse files
authored
Merge pull request #83437 from tshortli/const-has-no-effect
stdlib: Fix warning about superfluous 'const' on return type
2 parents b09b622 + c82b9ed commit 04852d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ _swift_stdlib_CreateIndirectTaggedPointerString(const __swift_uint8_t * _Nonnull
8383
_swift_shims_CFIndex len);
8484

8585
SWIFT_RUNTIME_STDLIB_API
86-
const _swift_shims_NSUInteger
86+
_swift_shims_NSUInteger
8787
_swift_stdlib_NSStringLengthOfBytesInEncodingTrampoline(id _Nonnull obj,
8888
unsigned long encoding);
8989

stdlib/public/stubs/FoundationHelpers.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ typedef __swift_uint8_t (*getCStringImplPtr)(id,
107107
}
108108

109109
SWIFT_RUNTIME_STDLIB_API
110-
const _swift_shims_NSUInteger
110+
_swift_shims_NSUInteger
111111
_swift_stdlib_NSStringLengthOfBytesInEncodingTrampoline(id _Nonnull obj,
112112
unsigned long encoding) {
113113
typedef _swift_shims_NSUInteger (*getLengthImplPtr)(id,

0 commit comments

Comments
 (0)