fts: avoid compiler warning
authorEric Blake <ebb9@byu.net>
Mon, 21 Sep 2009 16:11:18 +0000 (10:11 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 22 Sep 2009 11:38:56 +0000 (05:38 -0600)
* lib/fts.c (dirent_inode_sort_may_be_useful)
(leaf_optimization_applies) [!__linux__]: Mark unused parameters.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/fts.c

index c609ae9..7c6f358 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-21  Eric Blake  <ebb9@byu.net>
+
+       fts: avoid compiler warning
+       * lib/fts.c (dirent_inode_sort_may_be_useful)
+       (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
+
 2009-09-19  Bruno Haible  <bruno@clisp.org>
 
        * lib/progreloc.c (canonicalize_file_name): New declaration.
index 2893e66..041f9f0 100644 (file)
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -726,8 +726,10 @@ leaf_optimization_applies (int dir_fd)
 }
 
 #else
-static bool dirent_inode_sort_may_be_useful (int dir_fd) { return true; }
-static bool leaf_optimization_applies (int dir_fd) { return false; }
+static bool
+dirent_inode_sort_may_be_useful (int dir_fd ATTRIBUTE_UNUSED) { return true; }
+static bool
+leaf_optimization_applies (int dir_fd ATTRIBUTE_UNUSED) { return false; }
 #endif
 
 #if GNULIB_FTS