aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-03-28 08:41:54 +0200
committerPetr Štetiar <ynezz@true.cz>2022-03-28 09:27:56 +0200
commit3eb777e1807f52b51c812fe691b811da6af44d77 (patch)
tree8853f53391a5044f54d375ea894b8d9ddd074188 /package/libs
parent8839a939ee7681f8ca42846d05ce19b3df1e55d5 (diff)
downloadupstream-3eb777e1807f52b51c812fe691b811da6af44d77.tar.gz
upstream-3eb777e1807f52b51c812fe691b811da6af44d77.tar.bz2
upstream-3eb777e1807f52b51c812fe691b811da6af44d77.zip
libs/zlib: fix implicit function declaration warning
Fixes following warning: adler32.c:141:12: warning: implicit declaration of function 'NEON_adler32' [-Wimplicit-function-declaration] 141 | return NEON_adler32(adler, buf, len); Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/zlib/patches/001-neon-implementation-of-adler32.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/libs/zlib/patches/001-neon-implementation-of-adler32.patch b/package/libs/zlib/patches/001-neon-implementation-of-adler32.patch
index 9ed784e3d3..c5517299d7 100644
--- a/package/libs/zlib/patches/001-neon-implementation-of-adler32.patch
+++ b/package/libs/zlib/patches/001-neon-implementation-of-adler32.patch
@@ -75,16 +75,16 @@ https://bugs.chromium.org/p/chromium/issues/detail?id=688601
set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL)
set_target_properties(zlib PROPERTIES SOVERSION 1)
-diff --git a/adler32.c b/adler32.c
-index d0be4380..45ebaa4b 100644
--- a/adler32.c
+++ b/adler32.c
-@@ -136,7 +136,12 @@ uLong ZEXPORT adler32(adler, buf, len)
+@@ -136,7 +136,14 @@ uLong ZEXPORT adler32(adler, buf, len)
const Bytef *buf;
uInt len;
{
+#ifdef ARMv8
+# pragma message("Using NEON-ized Adler32.")
++unsigned long NEON_adler32(unsigned long adler, const unsigned char *buf,
++ const unsigned int len);
+ return NEON_adler32(adler, buf, len);
+#else
return adler32_z(adler, buf, len);