From 78ead0eca16bb4bd4628eb7d5eb99f8d00a1c8e7 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Sun, 11 Jan 2026 16:05:31 +0000 Subject: [PATCH] configure: prevent error with -Werror=unused-parameter (#612) --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index fb47a02..a97dbda 100755 --- a/configure +++ b/configure @@ -251,7 +251,7 @@ check_link "whether we can use -Wl,--no-as-needed" "-Wl,--no-as-needed" \ LD_SONAME_FLAG= printf "checking what's the option to use in linker to set library name ... " for o in --soname -h -soname -install_name; do - check_link_silent "-shared -Wl,$o,libconftest.so" "void test_func(int a) {}" && LD_SONAME_FLAG=$o && break + check_link_silent "-shared -Wl,$o,libconftest.so" "void test_func(void) {}" && LD_SONAME_FLAG=$o && break done if [ -z "$LD_SONAME_FLAG" ]; then printf '\ncannot find an option to set library name\n'