From: Eric Blake Date: Mon, 21 Sep 2009 16:11:18 +0000 (-0600) Subject: fts: avoid compiler warning X-Git-Tag: v0.1~5437 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=5ac332ad735b4e4c7dd5a953af5f257ed492ff54;p=gnulib.git 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 --- diff --git a/ChangeLog b/ChangeLog index c609ae9b5..7c6f35826 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 2893e6695..041f9f070 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