[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fts: fix compiler warning
From: |
Eric Blake |
Subject: |
fts: fix compiler warning |
Date: |
Tue, 22 Sep 2009 05:42:07 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----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 address@hidden
-----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 <address@hidden>
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 <address@hidden>
---
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 <address@hidden>
+
+ 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 <address@hidden>
* 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
- fts: fix compiler warning,
Eric Blake <=