diff --git a/libs/libyuv/include/libyuv/cpu_id.h b/libs/libyuv/include/libyuv/cpu_id.h index 54512b766d..67992258a3 100644 --- a/libs/libyuv/include/libyuv/cpu_id.h +++ b/libs/libyuv/include/libyuv/cpu_id.h @@ -108,7 +108,7 @@ LIBYUV_API int AArch64CpuCaps(unsigned long hwcap, unsigned long hwcap2); #else LIBYUV_API -int AArch64CpuCaps(); +int AArch64CpuCaps(void); #endif // For testing, allow CPU flags to be disabled. diff --git a/libs/libyuv/source/cpu_id.cc b/libs/libyuv/source/cpu_id.cc index f78283a972..cca1da831c 100644 --- a/libs/libyuv/source/cpu_id.cc +++ b/libs/libyuv/source/cpu_id.cc @@ -229,7 +229,7 @@ LIBYUV_API SAFEBUFFERS int AArch64CpuCaps(unsigned long hwcap, #elif defined(_WIN32) // For AArch64, but public to allow testing on any CPU. -LIBYUV_API SAFEBUFFERS int AArch64CpuCaps() { +LIBYUV_API SAFEBUFFERS int AArch64CpuCaps(void) { // Neon is mandatory on AArch64, so enable unconditionally. int features = kCpuHasNEON; @@ -259,7 +259,7 @@ static bool have_feature(const char* feature) { } // For AArch64, but public to allow testing on any CPU. -LIBYUV_API SAFEBUFFERS int AArch64CpuCaps() { +LIBYUV_API SAFEBUFFERS int AArch64CpuCaps(void) { // Neon is mandatory on AArch64, so enable unconditionally. int features = kCpuHasNEON; @@ -288,7 +288,7 @@ LIBYUV_API SAFEBUFFERS int AArch64CpuCaps() { #else // !defined(__linux__) && !defined(_WIN32) && !defined(__APPLE__) // For AArch64, but public to allow testing on any CPU. -LIBYUV_API SAFEBUFFERS int AArch64CpuCaps() { +LIBYUV_API SAFEBUFFERS int AArch64CpuCaps(void) { // Neon is mandatory on AArch64, so enable unconditionally. int features = kCpuHasNEON;