File vapoursynth-upstream-fix-for-aarch64.patch of Package vapoursynth

From 4906ae8e7f8922db430b1d90aa2b4f36f9aa1bac Mon Sep 17 00:00:00 2001
From: Fredrik Mellbin <fredrik.mellbin@gmail.com>
Date: Thu, 26 Apr 2018 16:20:18 +0200
Subject: [PATCH] Change unknown cpu features to a warning instead of an error

---
 src/core/cpufeatures.c | 4 ++--
 src/core/cpufeatures.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core/cpufeatures.c b/src/core/cpufeatures.c
index 78b92be6..ec00b02d 100644
--- a/src/core/cpufeatures.c
+++ b/src/core/cpufeatures.c
@@ -94,9 +94,9 @@ void getCPUFeatures(CPUFeatures *cpuFeatures) {
     cpuFeatures->dfp = !!(hwcap & PPC_FEATURE_HAS_DFP);
     cpuFeatures->vsx = !!(hwcap & PPC_FEATURE_HAS_VSX);
 #else
-#error Do not know how to get CPU features on Linux.
+#warning "Do not know how to get CPU features on Linux."
 #endif
 }
 #else
-#error Do not know how to get CPU features.
+#warning "Do not know how to get CPU features."
 #endif
diff --git a/src/core/cpufeatures.h b/src/core/cpufeatures.h
index 2f94438e..b2bf8512 100644
--- a/src/core/cpufeatures.h
+++ b/src/core/cpufeatures.h
@@ -60,7 +60,7 @@ typedef struct CPUFeatures {
     char dfp;
     char vsx;
 #else
-#error No VS_TARGET_CPU_* defined/handled!
+#warning "No VS_TARGET_CPU_* defined/handled!"
 #endif
 } CPUFeatures;
 
openSUSE Build Service is sponsored by