Skip to content

Commit 40ef3e6

Browse files
committed
Add some prototypes to these functions; NFC
This is expected to fix the issues in this build bot: https://lab.llvm.org/buildbot/#/builders/37/builds/12312
1 parent c6f37ab commit 40ef3e6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

compiler-rt/lib/builtins/cpu_model.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ enum ProcessorFeatures {
149149
// Check motivated by bug reports for OpenSSL crashing on CPUs without CPUID
150150
// support. Consequently, for i386, the presence of CPUID is checked first
151151
// via the corresponding eflags bit.
152-
static bool isCpuIdSupported() {
152+
static bool isCpuIdSupported(void) {
153153
#if defined(__GNUC__) || defined(__clang__)
154154
#if defined(__i386__)
155155
int __cpuid_supported;

compiler-rt/lib/builtins/emutls.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static __inline void emutls_setspecific(emutls_address_array *value) {
9393
pthread_setspecific(emutls_pthread_key, (void *)value);
9494
}
9595

96-
static __inline emutls_address_array *emutls_getspecific() {
96+
static __inline emutls_address_array *emutls_getspecific(void) {
9797
return (emutls_address_array *)pthread_getspecific(emutls_pthread_key);
9898
}
9999

@@ -125,9 +125,9 @@ static __inline void emutls_init_once(void) {
125125
pthread_once(&once, emutls_init);
126126
}
127127

128-
static __inline void emutls_lock() { pthread_mutex_lock(&emutls_mutex); }
128+
static __inline void emutls_lock(void) { pthread_mutex_lock(&emutls_mutex); }
129129

130-
static __inline void emutls_unlock() { pthread_mutex_unlock(&emutls_mutex); }
130+
static __inline void emutls_unlock(void) { pthread_mutex_unlock(&emutls_mutex); }
131131

132132
#else // _WIN32
133133

@@ -209,16 +209,16 @@ static __inline void emutls_init_once(void) {
209209
InitOnceExecuteOnce(&once, emutls_init, NULL, NULL);
210210
}
211211

212-
static __inline void emutls_lock() { EnterCriticalSection(emutls_mutex); }
212+
static __inline void emutls_lock(void) { EnterCriticalSection(emutls_mutex); }
213213

214-
static __inline void emutls_unlock() { LeaveCriticalSection(emutls_mutex); }
214+
static __inline void emutls_unlock(void) { LeaveCriticalSection(emutls_mutex); }
215215

216216
static __inline void emutls_setspecific(emutls_address_array *value) {
217217
if (TlsSetValue(emutls_tls_index, (LPVOID)value) == 0)
218218
win_abort(GetLastError(), "TlsSetValue");
219219
}
220220

221-
static __inline emutls_address_array *emutls_getspecific() {
221+
static __inline emutls_address_array *emutls_getspecific(void) {
222222
LPVOID value = TlsGetValue(emutls_tls_index);
223223
if (value == NULL) {
224224
const DWORD err = GetLastError();

compiler-rt/lib/builtins/fp_mode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#include "fp_mode.h"
1616

1717
// IEEE-754 default rounding (to nearest, ties to even).
18-
CRT_FE_ROUND_MODE __fe_getround() { return CRT_FE_TONEAREST; }
18+
CRT_FE_ROUND_MODE __fe_getround(void) { return CRT_FE_TONEAREST; }
1919

20-
int __fe_raise_inexact() {
20+
int __fe_raise_inexact(void) {
2121
return 0;
2222
}

0 commit comments

Comments
 (0)