automake-commit
[Top][All Lists]
Advanced

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

[automake-commit] branch master updated: tests: Fix 'type defaults' erro


From: Mike Frysinger
Subject: [automake-commit] branch master updated: tests: Fix 'type defaults' error in link_cond due to main not being properly declared
Date: Fri, 13 Jan 2023 01:32:30 -0500

This is an automated email from the git hooks/post-receive script.

vapier pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=2a9908da9dbc075ee6c4e853cf3be0365b15f202

The following commit(s) were added to refs/heads/master by this push:
     new 2a9908da9 tests: Fix 'type defaults' error in link_cond due to main 
not being properly declared
2a9908da9 is described below

commit 2a9908da9dbc075ee6c4e853cf3be0365b15f202
Author: Frédéric Bérat <fberat@redhat.com>
AuthorDate: Mon Dec 12 08:05:53 2022 +0100

    tests: Fix 'type defaults' error in link_cond due to main not being 
properly declared
    
    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/link_cond.sh: Add (void) to main definition.
---
 t/link_cond.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/link_cond.sh b/t/link_cond.sh
index 45d0d7f40..889623131 100644
--- a/t/link_cond.sh
+++ b/t/link_cond.sh
@@ -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]