Skip to content

Commit 7605811

Browse files
authored
Update CFRuntime.c
Do not rely on implicit `int` type on untyped declarations. This is an ancient C rule and newer clang emits a warning (which is treated as an error). Repair the build for the rebranch.
1 parent 314bb06 commit 7605811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CoreFoundation/Base.subproj/CFRuntime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ CFTypeRef _CFRuntimeCreateInstance(CFAllocatorRef allocator, CFTypeID typeID, CF
446446

447447
#if !defined(__APPLE__) && (defined(__i686__) || (defined(__arm__) && !defined(__aarch64__)) || defined(_M_IX86) || defined(_M_ARM))
448448
// Linux and Windows 32-bit targets perform 8-byte alignment by default.
449-
static const kDefaultAlignment = 8;
449+
static const int kDefaultAlignment = 8;
450450
#else
451-
static const kDefaultAlignment = 16;
451+
static const int kDefaultAlignment = 16;
452452
#endif
453453

454454
// Ensure that we get the alignment correct for various targets. In the

0 commit comments

Comments
 (0)