automake-patches
[Top][All Lists]
Advanced

[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: Zack Weinberg
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 15:14:40 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

On 2022-12-12 2:05 AM, Frederic Berat wrote:
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.
...
  /* Valid C but deliberately invalid C++ */
-main ()
+int main (void)

Note the comment.  Is this test program still invalid C++ after your change?

zw






reply via email to

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