mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
riscv: Remove unused argument
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
This commit is contained in:
parent
f451a4de09
commit
4266c75f40
@ -25,7 +25,7 @@
|
||||
#endif
|
||||
|
||||
static int
|
||||
png_have_rvv(png_structp png_ptr) {
|
||||
png_have_rvv() {
|
||||
#if defined(__linux__)
|
||||
return getauxval (AT_HWCAP) & COMPAT_HWCAP_ISA_V ? 1 : 0;
|
||||
#else
|
||||
|
@ -26,7 +26,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
static int png_have_rvv(png_structp png_ptr);
|
||||
static int png_have_rvv();
|
||||
#ifdef PNG_RISCV_RVV_FILE
|
||||
# include PNG_RISCV_RVV_FILE
|
||||
#endif
|
||||
@ -43,7 +43,7 @@ png_init_filter_functions_rvv(png_structp pp, unsigned int bpp)
|
||||
static volatile sig_atomic_t no_rvv = -1; /* not checked */
|
||||
|
||||
if (no_rvv < 0)
|
||||
no_rvv = !png_have_rvv(pp);
|
||||
no_rvv = !png_have_rvv();
|
||||
|
||||
if (no_rvv)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user