From 3672e5e663802e1956407065c75d2aff130ae50e Mon Sep 17 00:00:00 2001 From: kanjitalk755 <33744007+kanjitalk755@users.noreply.github.com> Date: Tue, 31 Dec 2024 10:29:49 +0900 Subject: [PATCH] Specify return type of main() in conftest.c (#268) --- hfsutils/configure | 2 +- hfsutils/libhfs/configure | 4 ++-- hfsutils/librsrc/configure | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hfsutils/configure b/hfsutils/configure index e6e752e8dd..53d2f63ce8 100755 --- a/hfsutils/configure +++ b/hfsutils/configure @@ -711,7 +711,7 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_cv_prog_cc_works=yes diff --git a/hfsutils/libhfs/configure b/hfsutils/libhfs/configure index 403cc5c7db..d8398fd03c 100755 --- a/hfsutils/libhfs/configure +++ b/hfsutils/libhfs/configure @@ -657,7 +657,7 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_cv_prog_cc_works=yes @@ -1278,7 +1278,7 @@ else #line 1279 "configure" #include "confdefs.h" -main() +int main() { char c0 = 0x40, c1 = 0x80, c2 = 0x81; exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); diff --git a/hfsutils/librsrc/configure b/hfsutils/librsrc/configure index 302f1661ce..cd5c4714ed 100755 --- a/hfsutils/librsrc/configure +++ b/hfsutils/librsrc/configure @@ -657,7 +657,7 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_cv_prog_cc_works=yes