Compilers defaulting to C99 flag such functions as warning which fails
to compile when using -Werror
Fixes
error: a function declaration without a prototype is deprecated in all versions
of C [-Werror,-Wstrict-prototypes]
---
lib/autoconf/c.m4 | 10 +-
1 file changed, 5 insertions(+), 5
Compilers defaulting to C99 flag such functions as warning which fails
to compile when using -Werror
Fixes
error: a function declaration without a prototype is deprecated in all versions
of C [-Werror,-Wstrict-prototypes]
---
lib/autoconf/c.m4 | 10 +-
1 file changed, 5 insertions(+), 5
Compilers defaulting to C99 flag such functions as warning which fails
to compile when using -Werror
Fixes
error: a function declaration without a prototype is deprecated in all versions
of C [-Werror,-Wstrict-prototypes]
---
lib/autoconf/c.m4 | 10 +-
1 file changed, 5 insertions(+), 5
On 8/17/22 09:51, Khem Raj wrote:
Compilers defaulting to C99 flag such functions as warning which fails
to compile when using -Werror
Sure, but one should never run 'configure' with -Werror.
On Wed, Aug 17, 2022 at 4:13 PM Paul Eggert wrote:
>
> On 8/17/22 09:51, Khem Raj wrote:
> > Compilers defaulting to C99 flag such functions as warning which fails
> > to compile when using -Werror
>
> Sure, but one should never run 'configure' with -Werror.
>
right and I am not passing -Werror t
On 8/17/22 16:25, Khem Raj wrote:
right and I am not passing -Werror to configure but its newer version
of clang ( clang 15) which is turning these warnings into errors
by default now.
Wait, so clang 15 by default refuses to compile this C program?
void f() {}