tests/nap.h: avoid warning about unused variable
authorJim Meyering <jim@meyering.net>
Fri, 9 Nov 2012 07:03:57 +0000 (23:03 -0800)
committerJim Meyering <jim@meyering.net>
Fri, 9 Nov 2012 07:03:57 +0000 (23:03 -0800)
* tests/nap.h (nap_works): Remove now-unused declaration of "result".

ChangeLog
tests/nap.h

index a742d0a..7e0129e 100644 (file)
--- 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
index 99d47b6..56bb23f 100644 (file)
@@ -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);