diff options
author | Allan McRae <allan@archlinux.org> | 2011-04-29 13:10:09 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-05-04 22:53:49 +0200 |
commit | 7680f461575b63b592090dbf76c13aa7040b840b (patch) | |
tree | ccb441805c86204e497ae7a89db8cbb8072e66b1 /lib/libalpm/util.h | |
parent | c4fccfe3e65c17ee5284e10570f9a8fd20e361fa (diff) | |
download | pacman-7680f461575b63b592090dbf76c13aa7040b840b.tar.gz 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/util.h')
-rw-r--r-- | lib/libalpm/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index eb1cad36..776cee4d 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -117,6 +117,8 @@ char *strndup(const char *s, size_t n); #define SYMEXPORT __attribute__((visibility("default"))) #define SYMHIDDEN __attribute__((visibility("internal"))) +#define UNUSED __attribute__((unused)) + #endif /* _ALPM_UTIL_H */ /* vim: set ts=2 sw=2 noet: */ |