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/be_local.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/be_local.c')
-rw-r--r-- | lib/libalpm/be_local.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index e5a8c7b1..d4f7b38e 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -180,7 +180,7 @@ static alpm_list_t *_cache_get_replaces(pmpkg_t *pkg) } /* local packages can not have deltas */ -static alpm_list_t *_cache_get_deltas(pmpkg_t *pkg) +static alpm_list_t *_cache_get_deltas(pmpkg_t UNUSED *pkg) { return NULL; } @@ -245,7 +245,7 @@ static void *_cache_changelog_open(pmpkg_t *pkg) * @return the number of characters read, or 0 if there is no more data */ static size_t _cache_changelog_read(void *ptr, size_t size, - const pmpkg_t *pkg, const void *fp) + const pmpkg_t UNUSED *pkg, const void *fp) { return fread(ptr, 1, size, (FILE *)fp); } @@ -257,7 +257,7 @@ static size_t _cache_changelog_read(void *ptr, size_t size, * @param fp a 'file stream' to the package changelog * @return whether closing the package changelog stream was successful */ -static int _cache_changelog_close(const pmpkg_t *pkg, void *fp) +static int _cache_changelog_close(const pmpkg_t UNUSED *pkg, void *fp) { return fclose((FILE *)fp); } |