From b21fc93b78d41d575b0bf1a6f068c797a15dd177 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Sat, 31 Oct 2026 13:29:08 +0300 Subject: [PATCH] [libyuv] Fix function declaration without a prototype --- libs/libyuv/include/libyuv/cpu_id.h | 2 +- libs/libyuv/source/cpu_id.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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;