Misc cleanups: use __attribute__((__unused__)); remove dead code.
This commit is contained in:
@@ -63,10 +63,8 @@ usage(bool fail)
|
||||
}
|
||||
|
||||
static void
|
||||
unpack_progress_cb(struct xbps_unpack_cb_data *xpd, void *cbdata)
|
||||
unpack_progress_cb(struct xbps_unpack_cb_data *xpd, void *cbdata _unused)
|
||||
{
|
||||
(void)cbdata;
|
||||
|
||||
if (xpd->entry == NULL || xpd->entry_total_count <= 0)
|
||||
return;
|
||||
|
||||
|
@@ -32,15 +32,13 @@
|
||||
#include "defs.h"
|
||||
|
||||
void
|
||||
state_cb(struct xbps_state_cb_data *xscd, void *cbdata)
|
||||
state_cb(struct xbps_state_cb_data *xscd, void *cbdata _unused)
|
||||
{
|
||||
xbps_dictionary_t pkgd;
|
||||
const char *instver, *newver;
|
||||
char *pkgname;
|
||||
bool syslog_enabled = false;
|
||||
|
||||
(void)cbdata;
|
||||
|
||||
if (xscd->xhp->flags & XBPS_FLAG_SYSLOG) {
|
||||
syslog_enabled = true;
|
||||
openlog("xbps-install", LOG_CONS, LOG_USER);
|
||||
|
Reference in New Issue
Block a user