Skip to content

Commit 5cdb32f

Browse files
committed
[stdlib] fix prototype declaration in RuntimeShims.h
_swift_stdlib_getHardwareConcurrency's declaration isn't a proper prototype: it's missing `void` inside the brackets. Found while compiling the stdlib to WebAssembly, which fails with: Functions with 'no-prototype' attribute must take varargs: _swift_stdlib_getHardwareConcurrency This shouldn't impact existing platforms.
1 parent a2d932d commit 5cdb32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SwiftShims/RuntimeShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SWIFT_RUNTIME_STDLIB_API
5757
int _swift_stdlib_putc_stderr(int C);
5858

5959
SWIFT_RUNTIME_STDLIB_API
60-
__swift_size_t _swift_stdlib_getHardwareConcurrency();
60+
__swift_size_t _swift_stdlib_getHardwareConcurrency(void);
6161

6262
/// Manually allocated memory is at least 16-byte aligned in Swift.
6363
///

0 commit comments

Comments
 (0)