From 5ac332ad735b4e4c7dd5a953af5f257ed492ff54 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 21 Sep 2009 10:11:18 -0600 Subject: [PATCH] fts: avoid compiler warning * lib/fts.c (dirent_inode_sort_may_be_useful) (leaf_optimization_applies) [!__linux__]: Mark unused parameters. Signed-off-by: Eric Blake --- ChangeLog | 6 ++++++ lib/fts.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c609ae9b53..7c6f35826a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-09-21 Eric Blake + + 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 * lib/progreloc.c (canonicalize_file_name): New declaration. diff --git a/lib/fts.c b/lib/fts.c index 2893e66959..041f9f0704 100644 --- 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 -- 2.30.2