From: Bruno Haible Date: Sun, 1 Mar 2009 16:54:52 +0000 (+0100) Subject: Avoid a gcc warning. X-Git-Tag: v0.1~6240 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=c98c353fe8a7697fab65c58382afb95b8db2f07f;p=gnulib.git Avoid a gcc warning. --- diff --git a/ChangeLog b/ChangeLog index f8490dc3d..2387d2436 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-03-01 Bruno Haible + + Avoid a gcc warning. + * tests/test-sched.c (b): Make global. + Reported by Eric Blake. + 2009-01-19 Martin Lambers Provide POSIX semantics for socket timeout options on W32. diff --git a/tests/test-sched.c b/tests/test-sched.c index 8925d3aa4..6bec1f733 100644 --- a/tests/test-sched.c +++ b/tests/test-sched.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,8 +23,8 @@ /* Check that 'struct sched_param' is defined. */ static struct sched_param a; -/* Check that the SCHED_* macris are defined and compile-time constants. */ -static int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER }; +/* Check that the SCHED_* macros are defined and compile-time constants. */ +int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER }; static int f1;