Date: Wed, 21 Mar 2018 04:44:19 +0000 (UTC) From: Conrad Meyer <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331284 - head/tests/sys/kern Message-ID: <201803210444.w2L4iJaJ090557@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Wed Mar 21 04:44:19 2018 New Revision: 331284 URL: https://svnweb.freebsd.org/changeset/base/331284 Log: Appease GCC 4.2 It mistakenly believes the 'static' keyword must come first. Fix PPC, Sparc64, and maybe MIPS world. Fallout from r331279. Reported by: tinderbox (results come slowly) Modified: head/tests/sys/kern/sys_getrandom.c Modified: head/tests/sys/kern/sys_getrandom.c ============================================================================== --- head/tests/sys/kern/sys_getrandom.c Wed Mar 21 03:43:40 2018 (r331283) +++ head/tests/sys/kern/sys_getrandom.c Wed Mar 21 04:44:19 2018 (r331284) @@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$"); #include <zstd.h> -const static unsigned valid_flags[] = { 0, GRND_NONBLOCK, GRND_RANDOM, +static const unsigned valid_flags[] = { 0, GRND_NONBLOCK, GRND_RANDOM, GRND_NONBLOCK | GRND_RANDOM }; ATF_TC_WITHOUT_HEAD(getrandom_randomness);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803210444.w2L4iJaJ090557>