diff options
author | Frédéric Bérat <fberat@redhat.com> | 2022-12-12 08:05:53 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-13 01:32:02 -0500 |
commit | 2a9908da9dbc075ee6c4e853cf3be0365b15f202 (patch) | |
tree | 1e7962dbc13a1da09e2184328752484d08d1b987 | |
parent | 55f8fcfd08cbf15d65d61dd2db934b6c3171cf06 (diff) | |
download | automake-2a9908da9dbc075ee6c4e853cf3be0365b15f202.tar.gz |
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.
-rw-r--r-- | t/link_cond.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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; |