[libyuv] Fix function declaration without a prototype

This commit is contained in:
Andrey Volk committed 2026-11-16 21:58:33 +03:00
1 parent 7f73f94c15
commit b21fc93b78
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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.
+3 -3
View File
@@ -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;