changeset 36846:6c299522fa54

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 6df2a3fedfc4
children ab3cb46fd786
files ChangeLog tests/nap.h
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Nov 07 22:37:39 2012 -0800
+++ b/ChangeLog	Thu Nov 08 23:03:57 2012 -0800
@@ -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	Wed Nov 07 22:37:39 2012 -0800
+++ b/tests/nap.h	Thu Nov 08 23:03:57 2012 -0800
@@ -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);