Although -Wmain-return-type is not considered as error (unlike -Wimplicit-int on gcc 14 and clang 16), but just a warning, let's fix it for the future.
<stdin>:1:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] While at it, add missing void. Signed-off-by: Petr Vorel <petr.vo...@gmail.com> --- Changes v1->v2: * keep int return type on a separate line (Zack. I still wonder why :)) NOTE: there are places where int is not on a separate line: #ifdef __cplusplus #include <stdio.h> /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif * add void (Zack) config.guess | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/config.guess b/config.guess index f6d217a..ff5146b 100755 --- a/config.guess +++ b/config.guess @@ -4,7 +4,7 @@ # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2024-01-01' +timestamp='2024-01-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -634,7 +634,8 @@ EOF sed 's/^ //' << EOF > "$dummy.c" #include <sys/systemcfg.h> - main() + int + main (void) { if (!__power_pc()) exit(1); @@ -718,7 +719,8 @@ EOF #include <stdlib.h> #include <unistd.h> - int main () + int + main (void) { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); @@ -781,7 +783,7 @@ EOF sed 's/^ //' << EOF > "$dummy.c" #include <unistd.h> int - main () + main (void) { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns @@ -1621,7 +1623,8 @@ cat > "$dummy.c" <<EOF #endif #endif #endif -main () +int +main (void) { #if defined (sony) #if defined (MIPSEB) -- 2.43.0