mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-29 15:44:04 +00:00
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>
This commit is contained in:
parent
8839a939ee
commit
3eb777e180
@ -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 DEFINE_SYMBOL ZLIB_DLL)
|
||||||
set_target_properties(zlib PROPERTIES SOVERSION 1)
|
set_target_properties(zlib PROPERTIES SOVERSION 1)
|
||||||
|
|
||||||
diff --git a/adler32.c b/adler32.c
|
|
||||||
index d0be4380..45ebaa4b 100644
|
|
||||||
--- a/adler32.c
|
--- a/adler32.c
|
||||||
+++ b/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;
|
const Bytef *buf;
|
||||||
uInt len;
|
uInt len;
|
||||||
{
|
{
|
||||||
+#ifdef ARMv8
|
+#ifdef ARMv8
|
||||||
+# pragma message("Using NEON-ized Adler32.")
|
+# 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);
|
+ return NEON_adler32(adler, buf, len);
|
||||||
+#else
|
+#else
|
||||||
return adler32_z(adler, buf, len);
|
return adler32_z(adler, buf, len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user