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
This commit is contained in:
parent
c6f37ab250
commit
40ef3e6df6
@ -149,7 +149,7 @@ enum ProcessorFeatures {
|
||||
// Check motivated by bug reports for OpenSSL crashing on CPUs without CPUID
|
||||
// support. Consequently, for i386, the presence of CPUID is checked first
|
||||
// via the corresponding eflags bit.
|
||||
static bool isCpuIdSupported() {
|
||||
static bool isCpuIdSupported(void) {
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#if defined(__i386__)
|
||||
int __cpuid_supported;
|
||||
|
||||
@ -93,7 +93,7 @@ static __inline void emutls_setspecific(emutls_address_array *value) {
|
||||
pthread_setspecific(emutls_pthread_key, (void *)value);
|
||||
}
|
||||
|
||||
static __inline emutls_address_array *emutls_getspecific() {
|
||||
static __inline emutls_address_array *emutls_getspecific(void) {
|
||||
return (emutls_address_array *)pthread_getspecific(emutls_pthread_key);
|
||||
}
|
||||
|
||||
@ -125,9 +125,9 @@ static __inline void emutls_init_once(void) {
|
||||
pthread_once(&once, emutls_init);
|
||||
}
|
||||
|
||||
static __inline void emutls_lock() { pthread_mutex_lock(&emutls_mutex); }
|
||||
static __inline void emutls_lock(void) { pthread_mutex_lock(&emutls_mutex); }
|
||||
|
||||
static __inline void emutls_unlock() { pthread_mutex_unlock(&emutls_mutex); }
|
||||
static __inline void emutls_unlock(void) { pthread_mutex_unlock(&emutls_mutex); }
|
||||
|
||||
#else // _WIN32
|
||||
|
||||
@ -209,16 +209,16 @@ static __inline void emutls_init_once(void) {
|
||||
InitOnceExecuteOnce(&once, emutls_init, NULL, NULL);
|
||||
}
|
||||
|
||||
static __inline void emutls_lock() { EnterCriticalSection(emutls_mutex); }
|
||||
static __inline void emutls_lock(void) { EnterCriticalSection(emutls_mutex); }
|
||||
|
||||
static __inline void emutls_unlock() { LeaveCriticalSection(emutls_mutex); }
|
||||
static __inline void emutls_unlock(void) { LeaveCriticalSection(emutls_mutex); }
|
||||
|
||||
static __inline void emutls_setspecific(emutls_address_array *value) {
|
||||
if (TlsSetValue(emutls_tls_index, (LPVOID)value) == 0)
|
||||
win_abort(GetLastError(), "TlsSetValue");
|
||||
}
|
||||
|
||||
static __inline emutls_address_array *emutls_getspecific() {
|
||||
static __inline emutls_address_array *emutls_getspecific(void) {
|
||||
LPVOID value = TlsGetValue(emutls_tls_index);
|
||||
if (value == NULL) {
|
||||
const DWORD err = GetLastError();
|
||||
|
||||
@ -15,8 +15,8 @@
|
||||
#include "fp_mode.h"
|
||||
|
||||
// IEEE-754 default rounding (to nearest, ties to even).
|
||||
CRT_FE_ROUND_MODE __fe_getround() { return CRT_FE_TONEAREST; }
|
||||
CRT_FE_ROUND_MODE __fe_getround(void) { return CRT_FE_TONEAREST; }
|
||||
|
||||
int __fe_raise_inexact() {
|
||||
int __fe_raise_inexact(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user