[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#59992] [PATCH 1/2] tests: Fix 'type defaults' error in link_cond du

From: Frederic Berat
Subject: [bug#59992] [PATCH 1/2] tests: Fix 'type defaults' error in link_cond due to main not being properly declared
Date: Mon, 12 Dec 2022 08:05:53 +0100

From: Frédéric Bérat <>

This is related to an effort to prepare Automake for future GCC/Clang
versions which set c99 as default standard to be used.
Not properly declaring main as "int main(...)" is rejected since c99.
 t/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/ b/t/
index e7a13b614..533e359e2 100644
--- a/t/
+++ b/t/
@@ -52,7 +52,7 @@ $AUTOCONF
 rm -f *.c++
 cat > less.c <<'END'
 /* Valid C but deliberately invalid C++ */
-main ()
+int main (void)
   int new = 0;
   return new;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]