diff options
author | Allan McRae <allan@archlinux.org> | 2011-04-29 21:10:09 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-05-04 15:53:49 -0500 |
commit | 7680f461575b63b592090dbf76c13aa7040b840b (patch) | |
tree | ccb441805c86204e497ae7a89db8cbb8072e66b1 /lib/libalpm/package.c | |
parent | c4fccfe3e65c17ee5284e10570f9a8fd20e361fa (diff) | |
download | pacman-7680f461575b63b592090dbf76c13aa7040b840b.tar.xz |
Deal with unused function parameters correctly
This started off removing the "(void)foo" hacks to work around
unused function parameters and ended up fixing every warning
generated by -Wunused-parameter.
Dan: rename to UNUSED.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r-- | lib/libalpm/package.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 393dae00..7b93c181 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -111,9 +111,22 @@ static alpm_list_t *_pkg_get_deltas(pmpkg_t *pkg) { return pkg->deltas; } static alpm_list_t *_pkg_get_files(pmpkg_t *pkg) { return pkg->files; } static alpm_list_t *_pkg_get_backup(pmpkg_t *pkg) { return pkg->backup; } -static void *_pkg_changelog_open(pmpkg_t *pkg) { return NULL; } -static size_t _pkg_changelog_read(void *ptr, size_t size, const pmpkg_t *pkg, const void *fp) { return 0; } -static int _pkg_changelog_close(const pmpkg_t *pkg, void *fp) { return EOF; } +static void *_pkg_changelog_open(pmpkg_t UNUSED *pkg) +{ + return NULL; +} + +static size_t _pkg_changelog_read(void UNUSED *ptr, size_t UNUSEDsize, + const pmpkg_t UNUSED *pkg, const UNUSED void *fp) +{ + return 0; +} + +static int _pkg_changelog_close(const pmpkg_t UNUSED *pkg, + void UNUSED *fp) +{ + return EOF; +} /** The standard package operations struct. Get fields directly from the * struct itself with no abstraction layer or any type of lazy loading. |