]> sourceware.org Git - newlib-cygwin.git/commit
don't use C99 static array indices with older GCC versions
authoravg <avg@FreeBSD.org>
Tue, 4 Apr 2017 07:04:58 +0000 (09:04 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 4 Apr 2017 09:44:03 +0000 (11:44 +0200)
commit3abc66ec6bf8c4312da413a62a5740a33edccaad
treead70d20d9c525c0c45007b8333aaec33f5aefe76
parent7b07f11b1fc79224afaa8967a356796610bf82bf
don't use C99 static array indices with older GCC versions

For example, the FreeBSD GCC (4.2.1) has a spotty support for that
feature.  If the static keyword is used with an unnamed array parameter
in a function declaration, then the compilation fails with:
error: static or type qualifiers in abstract declarator

The feature does work if the parameter is named.
So, the restriction introduced in this commit can be removed when all
affected function prototypes have the workaround.

MFC after: 1 week
Sponsored by: Panzura
newlib/libc/include/sys/cdefs.h
This page took 0.029301 seconds and 5 git commands to generate.