On Thu, 2019-12-19 at 08:01 +0200, Adrian Bunk wrote: > On Thu, Dec 19, 2019 at 01:41:08PM +0800, Anuj Mittal wrote: > > Remove backported patches and explicitly pass -std=gnu99 to native > > CFLAGS > > to make sure build passes on older and still supported OSes like > > CentOS 7. > > ... > > -std=gnu99 is default with the ancient gcc on CentOS 7, > you could pass -std=gnu11 to bring it to the same standard > as current gcc. >
info gcc for gcc 4.8.5 says: The default, if no C language dialect options are given, is '-std=gnu90'; I get: [01m[K../../libtasn1-4.15.0/fuzz/corpus2array.c:[m[K In function '[01m[Kmain[m[K': [01m[K../../libtasn1-4.15.0/fuzz/corpus2array.c:123:4:[m[K [01;31m[Kerror: [m[K'[01m[Kfor[m[K' loop initial declarations are only allowed in C99 mode for (int i = 8; i < 32 ; i++) { [01;32m[K ^[m[K Thanks, Anuj -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core