Date: Wed, 1 Mar 2017 13:47:37 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r314494 - stable/10/sys/sys Message-ID: <201703011347.v21DlbYi038346@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Wed Mar 1 13:47:36 2017 New Revision: 314494 URL: https://svnweb.freebsd.org/changeset/base/314494 Log: MFC r314101: don't use C99 static array indices with older GCC versions Sponsored by: Panzura Modified: stable/10/sys/sys/cdefs.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/sys/cdefs.h ============================================================================== --- stable/10/sys/sys/cdefs.h Wed Mar 1 13:47:28 2017 (r314493) +++ stable/10/sys/sys/cdefs.h Wed Mar 1 13:47:36 2017 (r314494) @@ -340,6 +340,7 @@ * void bar(int myArray[__min_size(10)]); */ #if !defined(__cplusplus) && \ + (defined(__clang__) || __GNUC_PREREQ__(4, 6)) && \ (!defined(__STDC_VERSION__) || (__STDC_VERSION__ >= 199901)) #define __min_size(x) static (x) #else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703011347.v21DlbYi038346>