Skip to content

Commit e8f5229

Browse files
committed
[Dispatch] Functions declared in a header should be static.
These were accidentally non-static.
1 parent 47e8967 commit e8f5229

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stdlib/public/SwiftShims/DispatchOverlayShims.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static inline void _swift_dispatch_apply_current(
166166
}
167167

168168
SWIFT_DISPATCH_RETURNS_RETAINED
169-
__swift_shims_dispatch_data_t
169+
static inline __swift_shims_dispatch_data_t
170170
_swift_dispatch_data_create(
171171
const void *buffer,
172172
size_t size,
@@ -177,7 +177,7 @@ _swift_dispatch_data_create(
177177

178178
typedef unsigned int (^__swift_shims_dispatch_data_applier)(__swift_shims_dispatch_data_t, size_t, const void *, size_t);
179179

180-
unsigned int
180+
static inline unsigned int
181181
_swift_dispatch_data_apply(
182182
__swift_shims_dispatch_data_t data,
183183
__swift_shims_dispatch_data_applier SWIFT_DISPATCH_NOESCAPE applier) {
@@ -186,19 +186,19 @@ _swift_dispatch_data_apply(
186186
});
187187
}
188188

189-
void _swift_dispatch_source_set_event_handler(
189+
static inline void _swift_dispatch_source_set_event_handler(
190190
dispatch_source_t source,
191191
__swift_shims_dispatch_block_t _Nullable block) {
192192
dispatch_source_set_event_handler(source, block);
193193
}
194194

195-
void _swift_dispatch_source_set_cancel_handler(
195+
static inline void _swift_dispatch_source_set_cancel_handler(
196196
dispatch_source_t source,
197197
__swift_shims_dispatch_block_t _Nullable block) {
198198
dispatch_source_set_cancel_handler(source, block);
199199
}
200200

201-
void _swift_dispatch_source_set_registration_handler(
201+
static inline void _swift_dispatch_source_set_registration_handler(
202202
dispatch_source_t source,
203203
__swift_shims_dispatch_block_t _Nullable block) {
204204
dispatch_source_set_registration_handler(source, block);

0 commit comments

Comments
 (0)