-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm pushing this, detected during a cygwin build:
- -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkq4uA8ACgkQ84KuGfSFAYAl+QCeIvyIt9Xktr0JCrprOuG9nmgw Y+QAn1Ja4PyrXjMSbliboIFEDsNItPQ1 =Jh7Q -----END PGP SIGNATURE-----
>From 5ac332ad735b4e4c7dd5a953af5f257ed492ff54 Mon Sep 17 00:00:00 2001 From: Eric Blake <e...@byu.net> 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 <e...@byu.net> --- ChangeLog | 6 ++++++ lib/fts.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c609ae9..7c6f358 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-09-21 Eric Blake <e...@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 <br...@clisp.org> * lib/progreloc.c (canonicalize_file_name): New declaration. diff --git a/lib/fts.c b/lib/fts.c index 2893e66..041f9f0 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 -- 1.6.5.rc1