changeset 17155:5964b27e0bf3

tests/nap.h: avoid warning about unused variable * tests/nap.h (nap_works): Remove now-unused declaration of "result".
author Jim Meyering <jim@meyering.net>
date Thu, 08 Nov 2012 23:03:57 -0800
parents 4aefd9877c8a
children 75c813b2d840
files ChangeLog tests/nap.h
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-11-08  Jim Meyering  <jim@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
--- a/tests/nap.h
+++ b/tests/nap.h
@@ -48,7 +48,6 @@
 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);