summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matthew Smith2023-02-12 10:14:54 +0000
committerGravatar Matthew Smith2023-02-12 10:22:54 +0000
commit2cebd288e73d85e0abc09155616315f952ba1f4c (patch)
treef1f6434371d44b44aa4df94ed3a01266c7fbb8cb
parent6426362e5cbad7284368b7fe70363f6b3251f94c (diff)
downloadlibusbmuxd-2cebd288e73d85e0abc09155616315f952ba1f4c.tar.gz
libusbmuxd-2cebd288e73d85e0abc09155616315f952ba1f4c.tar.bz2
autoconf: Fix clang-16 breakage
-Wint-conversion becomes an error by default in clang-16, causing the program_invocation_short_name test to fail. Bug: https://bugs.gentoo.org/893910
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 0a4b79d..bfdcb34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,7 +94,7 @@ case ${host_os} in
fi
fi
AC_CACHE_CHECK(for program_invocation_short_name, ac_cv_program_invocation_short_name,[
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([extern char* program_invocation_short_name;],[return program_invocation_short_name;])],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([extern char* program_invocation_short_name;],[return program_invocation_short_name[0];])],
[ac_cv_program_invocation_short_name=yes],
[ac_cv_program_invocation_short_name=no]
)
@@ -102,7 +102,7 @@ case ${host_os} in
if test "x$ac_cv_program_invocation_short_name" = "xyes"; then
AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, 1, [Define if you have program_invocation_short_name])
AC_CACHE_CHECK(if program_invocation_short_name is declared in errno.h, ac_cv_program_invocation_short_name_errno_h,[
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <errno.h>],[return program_invocation_short_name;])],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <errno.h>],[return program_invocation_short_name[0];])],
[ac_cv_program_invocation_short_name_errno_h=yes],
[ac_cv_program_invocation_short_name_errno_h=no]
)