[gnutls-devel] C99?

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Wed Jul 27 23:39:51 CEST 2016

On Wed, 2016-07-27 at 21:56 +0200, Ludovic Courtès wrote:
> Hello,
> With current master I get this:

> '_gnutls_name_constraints_intersect':
> ../../../lib/x509/name_constraints.c:241:2: error: 'for' loop initial
> declarations are only allowed in C99 or C11 mode
>   for (int type = 1; type <= GNUTLS_SAN_MAX; type++) {
>   ^
> ../../../lib/x509/name_constraints.c:241:2: note: use option
> -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
> Makefile:1438: recipe for target 'name_constraints.lo' failed

Thanks, I didn't know that gcc4 choked on it. I would expect any
compiler to understand c99 today. Anyway I've committed a fix for it,
since we don't use this declaration form anywhere else. Otherwise, I'm
quite inclined towards moving to c99 completely.


More information about the Gnutls-devel mailing list