bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: config.h: ISO C11 does not support omitting the string in '_Static_a


From: Bruno Haible
Subject: Re: config.h: ISO C11 does not support omitting the string in '_Static_assert' [-Werror=c11-c2x-compat]
Date: Sat, 02 Nov 2024 00:10:55 +0100

Hi Tim,

> Just to make sure we are on the same page... When you say "that's 
> because you used -Werror. -Werror is not supported for Gnulib code.", do 
> you refer to compiling gnulib code or application code?

Both.

We try to achieve warning-free compilation on glibc systems with the newest
gcc. For other platforms or configurations, some warnings may occur.

> Because I was not talking about compiling the gnulib code itself.
> I got this error by including config.h into my application code.

When warnings get reported, we try harder to fix them if they occur
in your application's compilation units (i.e. caused by Gnulib .h files).

But we cannot make a guarantee, because some compiler warning options
merely represent coding style choices, and some of these coding style
choices contradict each other.

Bruno






reply via email to

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