Mercurial > hg > octave-nkf > gnulib-hg
changeset 12050:d1840b588599
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 <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 21 Sep 2009 10:11:18 -0600 |
parents | 22a617bea642 |
children | 01c9ffd58a51 |
files | ChangeLog lib/fts.c |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/lib/fts.c +++ b/lib/fts.c @@ -726,8 +726,10 @@ } #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