Re: [PATCH] tools: Remove the use of K&R functions

2023-02-17 Thread Andrew Cooper
On 17/02/2023 11:10 am, George Dunlap wrote: > > > On Thu, Feb 16, 2023 at 11:16 PM Andrew Cooper > wrote: > > Clang-15 (as seen in the FreeBSD 14 tests) complains: > >   xg_main.c:1248 error: a function declaration without a >   prototype is deprecated in all versions of C > [-Wer

Re: [PATCH] tools: Remove the use of K&R functions

2023-02-17 Thread George Dunlap
On Thu, Feb 16, 2023 at 11:16 PM Andrew Cooper wrote: > Clang-15 (as seen in the FreeBSD 14 tests) complains: > > xg_main.c:1248 error: a function declaration without a > prototype is deprecated in all versions of C > [-Werror,-Wstrict-prototypes] > xg_init() > ^ > void >

Re: [PATCH] tools: Remove the use of K&R functions

2023-02-17 Thread Anthony PERARD
On Thu, Feb 16, 2023 at 11:16:36PM +, Andrew Cooper wrote: > Clang-15 (as seen in the FreeBSD 14 tests) complains: > > xg_main.c:1248 error: a function declaration without a > prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] > xg_init() > ^ >

[PATCH] tools: Remove the use of K&R functions

2023-02-16 Thread Andrew Cooper
Clang-15 (as seen in the FreeBSD 14 tests) complains: xg_main.c:1248 error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] xg_init() ^ void The error message is a bit confusing but appears to new as part of -Wde