From 2cebd288e73d85e0abc09155616315f952ba1f4c Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Sun, 12 Feb 2023 10:14:54 +0000 Subject: 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 --- configure.ac | 4 ++-- 1 file 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 ],[return program_invocation_short_name;])], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ],[return program_invocation_short_name[0];])], [ac_cv_program_invocation_short_name_errno_h=yes], [ac_cv_program_invocation_short_name_errno_h=no] ) -- cgit v1.1-32-gdbae