diff options
author | Vadim Zeitlin <vadim@zeitlins.org> | 2020-02-04 22:48:25 +0100 |
---|---|---|
committer | Cosmin Truta <ctruta@gmail.com> | 2022-09-14 00:12:11 +0300 |
commit | 1f974dd2a939d4aff052ab74769ca237c4b0703f (patch) | |
tree | 5e0a70ce8131299d0d33e44fd40e7c5e5c3a8901 | |
parent | 3ec225dd411c1a779089fa558d659cf860d12da0 (diff) | |
download | libpng-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |