From 8cb5f8f1587b95a0e86fa8c2becea0cef8ee0a8b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 4 Feb 2020 22:48:25 +0100 Subject: [PATCH] Avoid -Wundef warnings for PNG_ARM_NEON_IMPLEMENTATION Define this symbol as 0 instead of leaving it undefined when not using ARM NEON optimizations. No real changes, but just avoid a bunch of "PNG_ARM_NEON_IMPLEMENTATION" is not defined, evaluates to 0 [-Wundef] warnings when building the library. --- pngpriv.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pngpriv.h b/pngpriv.h index 583c26f9b..d734f9746 100644 --- a/pngpriv.h +++ b/pngpriv.h @@ -185,6 +185,8 @@ /* Use the intrinsics code by default. */ # define PNG_ARM_NEON_IMPLEMENTATION 1 # endif +#else /* PNG_ARM_NEON_OPT == 0 */ +# define PNG_ARM_NEON_IMPLEMENTATION 0 #endif /* PNG_ARM_NEON_OPT > 0 */ #ifndef PNG_MIPS_MSA_OPT