summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Zeitlin <vadim@zeitlins.org>2020-02-04 22:48:25 +0100
committerCosmin Truta <ctruta@gmail.com>2022-09-14 00:12:11 +0300
commit1f974dd2a939d4aff052ab74769ca237c4b0703f (patch)
tree5e0a70ce8131299d0d33e44fd40e7c5e5c3a8901
parent3ec225dd411c1a779089fa558d659cf860d12da0 (diff)
downloadlibpng-1f974dd2a939d4aff052ab74769ca237c4b0703f.tar.gz
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.
-rw-r--r--pngpriv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pngpriv.h b/pngpriv.h
index 2fa614fda..c07750c20 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