Skip to content

Commit 723d02d

Browse files
committed
[Base] Removed some warnings
- Use macro CF_NOESCAPE for __attributes__((noescape))
1 parent b132a38 commit 723d02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/Base.subproj/ForSwiftFoundationOnly.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ static inline _Bool _resizeConditionalAllocationBuffer(_ConditionalAllocationBuf
375375
return true;
376376
}
377377

378-
static inline _Bool _withStackOrHeapBuffer(size_t amount, void (__attribute__((noescape)) ^ _Nonnull applier)(_ConditionalAllocationBuffer *_Nonnull)) {
378+
static inline _Bool _withStackOrHeapBuffer(size_t amount, void (CF_NOESCAPE ^ _Nonnull applier)(_ConditionalAllocationBuffer *_Nonnull)) {
379379
_ConditionalAllocationBuffer buffer;
380380
#if TARGET_OS_MAC
381381
buffer.capacity = malloc_good_size(amount);

0 commit comments

Comments
 (0)