[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors

2022-12-28 Thread Zack Weinberg
On Thu, 15 Dec 2022 11:48:44 -0500, Frederic Berat wrote: > On Mon, Dec 12, 2022 at 9:19 PM Zack Weinberg wrote: > > > return yylex (); > > Please change `int main ()` to `int main (void)` as long as you're in here. > I'm hesitant on this. That isn't the purpose of the patch, and if I > start

[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors

2022-12-15 Thread Frederic Berat
On Mon, Dec 12, 2022 at 9:19 PM Zack Weinberg wrote: > > 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. > > Function should be properly declared prior to use in order

[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors

2022-12-13 Thread Frederic Berat
I'll separe this one in a dedicated patch and give it a more detailed/specific explanation. On Tue, Dec 13, 2022 at 10:02 PM Zack Weinberg wrote: > > On Tue, Dec 13, 2022, at 1:30 AM, Frederic Berat wrote: > > On Mon, Dec 12, 2022 at 9:19 PM Zack Weinberg wrote: > >> > --- a/t/ax/depcomp.sh >

[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors

2022-12-13 Thread Zack Weinberg
On Tue, Dec 13, 2022, at 1:30 AM, Frederic Berat wrote: > On Mon, Dec 12, 2022 at 9:19 PM Zack Weinberg wrote: >> > --- a/t/ax/depcomp.sh >> > +++ b/t/ax/depcomp.sh >> > @@ -243,6 +243,7 @@ cat > sub/subfoo.h <<'END' >> > #include >> > extern int subfoo (void); >> > END >> > +cp

[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors

2022-12-13 Thread Frederic Berat
On Mon, Dec 12, 2022 at 9:19 PM Zack Weinberg wrote: > > 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. > > Function should be properly declared prior to use in order

[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors

2022-12-12 Thread Zack Weinberg
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. Function should be properly declared prior to use in order to be compatible with c99 standard. OK in principle, but ...

[bug#59993] [PATCH 2/2] tests: Fix implicit function declaration errors

2022-12-12 Thread Frederic Berat
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. Function should be properly declared prior to use in order to be compatible with c99 standard. This is valid for both local functions and standard