diff options
author | Jim Meyering <meyering@redhat.com> | 2009-02-05 11:02:05 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-02-05 11:08:26 +0100 |
commit | fbd0c7d7d3017cd662cc4ae4a4a0a0b6cfb07980 (patch) | |
tree | 73b3b7ee6b3000473bd5ab11973872a59ff4515a /lib/fsusage.c | |
parent | 70dde581e33b5952fa00e1b5914c081688db7bc4 (diff) | |
download | gnulib-fbd0c7d7d3017cd662cc4ae4a4a0a0b6cfb07980.tar.gz |
still avoid unused-parameter warnings, but do it cleanly
* lib/fsusage.c (UNUSED_PARAM): Remove definition.
(get_fs_usage): Cast to void instead.
* lib/mountlist.c (UNUSED_PARAM): Remove definition.
(dev_from_mount_options, read_file_system_list): Cast to void.
Prompted by Bruno Haible.
Diffstat (limited to 'lib/fsusage.c')
-rw-r--r-- | lib/fsusage.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/fsusage.c b/lib/fsusage.c index e11fd14e82..ade4195e33 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -84,12 +84,6 @@ otherwise, use PROPAGATE_ALL_ONES. */ #define PROPAGATE_TOP_BIT(x) ((x) | ~ (EXTRACT_TOP_BIT (x) - 1)) -#ifdef STAT_READ_FILSYS -# define UNUSED_PARAM /* empty */ -#else -# define UNUSED_PARAM _UNUSED_PARAMETER_ -#endif - /* Fill in the fields of FSP with information about space usage for the file system on which FILE resides. DISK is the device on which FILE is mounted, for space-getting @@ -98,9 +92,9 @@ ERRNO is either a system error value, or zero if DISK is NULL on a system that requires a non-NULL value. */ int -get_fs_usage (char const *file, char const *disk UNUSED_PARAM, - struct fs_usage *fsp) +get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp) { + (void) disk; /* avoid argument-unused warning */ #if defined STAT_STATVFS /* POSIX */ struct statvfs fsd; |