Misc cleanups: use __attribute__((__unused__)); remove dead code.
This commit is contained in:
@@ -36,16 +36,16 @@
|
||||
#include "defs.h"
|
||||
|
||||
static int
|
||||
pkgdb_cb(struct xbps_handle *xhp, xbps_object_t obj, const char *key, void *arg, bool *done)
|
||||
pkgdb_cb(struct xbps_handle *xhp _unused,
|
||||
xbps_object_t obj,
|
||||
const char *key _unused,
|
||||
void *arg _unused,
|
||||
bool *done _unused)
|
||||
{
|
||||
const char *pkgver;
|
||||
char *pkgname;
|
||||
int rv;
|
||||
|
||||
(void)key;
|
||||
(void)arg;
|
||||
(void)done;
|
||||
|
||||
xbps_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver);
|
||||
if (xhp->flags & XBPS_FLAG_VERBOSE)
|
||||
printf("Checking %s ...\n", pkgver);
|
||||
|
@@ -43,13 +43,10 @@
|
||||
* and remove them if that was true.
|
||||
*/
|
||||
int
|
||||
check_pkg_unneeded(struct xbps_handle *xhp, const char *pkgname, void *arg)
|
||||
check_pkg_unneeded(struct xbps_handle *xhp _unused, const char *pkgname _unused, void *arg)
|
||||
{
|
||||
xbps_dictionary_t pkgd = arg;
|
||||
|
||||
(void)xhp;
|
||||
(void)pkgname;
|
||||
|
||||
if (xbps_dictionary_get(pkgd, "remove-and-update"))
|
||||
xbps_dictionary_remove(pkgd, "remove-and-update");
|
||||
|
||||
|
Reference in New Issue
Block a user