This fixes a "make check" build warn/failure in coreutils: make[5]: *** [test-fchownat.o] Error 1 In file included from test-utimens-common.h:33:0, from test-futimens.h:17, from test-fdutimensat.c:33: nap.h: In function 'nap_works': nap.h:51:7: error: unused variable 'result' [-Werror=unused-variable] int result = 0; ^
>From 025f7741264a170d2a87c30370bc4b96b256f3b4 Mon Sep 17 00:00:00 2001 From: Jim Meyering <j...@meyering.net> Date: Thu, 8 Nov 2012 23:03:57 -0800 Subject: [PATCH] tests/nap.h: avoid warning about unused variable * tests/nap.h (nap_works): Remove now-unused declaration of "result". --- ChangeLog | 3 +++ tests/nap.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a742d0a..7e0129e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2012-11-08 Jim Meyering <j...@meyering.net> + tests/nap.h: avoid warning about unused variable + * tests/nap.h (nap_works): Remove now-unused declaration of "result". + prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require white space before each of the special-cased file names, to avoid diff --git a/tests/nap.h b/tests/nap.h index 99d47b6..56bb23f 100644 --- a/tests/nap.h +++ b/tests/nap.h @@ -48,7 +48,6 @@ static int nap_works (int fd, int delay, struct stat *st) { struct stat old_st; - int result = 0; old_st = *st; usleep (delay); get_mtime (fd, st, 1); -- 1.8.0