Commit 0fcc3eb06 for imagemagick.org
commit 0fcc3eb06758a865deb3dac4f8286cfda6a34d8e
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Sep 5 15:04:20 2026 -0400
eliminate compiler warning
diff --git a/MagickCore/utility-private.h b/MagickCore/utility-private.h
index 288fcc761..43239a8c8 100644
--- a/MagickCore/utility-private.h
+++ b/MagickCore/utility-private.h
@@ -96,28 +96,11 @@ static inline MagickBooleanType is_symlink_utf8(const char *path)
static inline int link_utf8(const char *source,const char *destination)
{
int
- status;
+ status = -1;
-#if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(__CYGWIN__)
- wchar_t
- *wide_source,
- *wide_dest;
-
- wide_source=ConvertUTF8ToUTF16(source);
- wide_dest=ConvertUTF8ToUTF16(destination);
- if ((wide_source == (wchar_t *) NULL) || (wide_dest == (wchar_t *) NULL))
- {
- if (wide_source != (wchar_t *) NULL)
- free(wide_source);
- if (wide_dest != (wchar_t *) NULL)
- free(wide_dest);
- errno=EINVAL;
- return(-1);
- }
- status=_wlink(wide_source,wide_dest);
- free(wide_source);
- free(wide_dest);
-#else
+ (void) source;
+ (void) destination;
+#if defined(MAGICKCORE_HAVE_LINK)
status=link(source,destination);
#endif
return(status);
diff --git a/config/config.h.in b/config/config.h.in
index be1bd0ea8..b2bc9fcf3 100644
--- a/config/config.h.in
+++ b/config/config.h.in
@@ -296,6 +296,9 @@
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
+/* Define to 1 if you have the 'link' function. */
+#undef HAVE_LINK
+
/* Define if you have Linux-compatible sendfile() */
#undef HAVE_LINUX_SENDFILE
diff --git a/configure b/configure
index b058be1a6..c9f24ba6a 100755
--- a/configure
+++ b/configure
@@ -5391,7 +5391,7 @@ MAGICK_PATCHLEVEL_VERSION=32
MAGICK_VERSION=7.1.2-32
-MAGICK_GIT_REVISION=0586c686f:20260904
+MAGICK_GIT_REVISION=5921a78a0:20260905
# Substitute library versioning
@@ -5425,7 +5425,7 @@ PACKAGE_LIB_VERSION=0x712
PACKAGE_LIB_VERSION_NUMBER=7,1,2,32
-PACKAGE_RELEASE_DATE=2026-09-04
+PACKAGE_RELEASE_DATE=2026-09-05
# Ensure that make can run correctly
@@ -36650,6 +36650,12 @@ if test "x$ac_cv_func_j1" = xyes
then :
printf "%s\n" "#define HAVE_J1 1" >>confdefs.h
+fi
+ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
+if test "x$ac_cv_func_link" = xyes
+then :
+ printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
+
fi
ac_fn_c_check_func "$LINENO" "lltostr" "ac_cv_func_lltostr"
if test "x$ac_cv_func_lltostr" = xyes
diff --git a/configure.ac b/configure.ac
index 05f37306c..56f3ed9dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3097,7 +3097,7 @@ dnl ===========================================================================
# Check for functions
#
-AC_CHECK_FUNCS([acosh _aligned_malloc aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock clock_getres clock_gettime ctime_r directio erf _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getentropy getexecname getdtablesize getloadavg getpagesize getpid getpwnam_r getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkdir mkstemp mmap munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread putenv pwrite qsort_r raise rand_r readlink realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strcasestr strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp system telldir tempnam times ulltostr uselocale usleep utime utimensat vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat])
+AC_CHECK_FUNCS([acosh _aligned_malloc aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock clock_getres clock_gettime ctime_r directio erf _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getentropy getexecname getdtablesize getloadavg getpagesize getpid getpwnam_r getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 link lltostr localtime_r lstat memmove memset mkdir mkstemp mmap munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread putenv pwrite qsort_r raise rand_r readlink realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strcasestr strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp system telldir tempnam times ulltostr uselocale usleep utime utimensat vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat])
# Substitute compiler name to build/link PerlMagick
#