[gnutls-devel] C99?
Eli Zaretskii
eliz at gnu.org
Thu Jul 28 04:36:35 CEST 2016
> From: Nikos Mavrogiannopoulos <n.mavrogiannopoulos at gmail.com>
> Date: Wed, 27 Jul 2016 23:39:51 +0200
>
> > '_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.
It does, but only if you say -std=gnu99 or -std=c99. The default in
GCC 4 is still C90.
More information about the Gnutls-devel
mailing list