}
static int fsck_handle_reflog_ent(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
- const char *message, void *cb_data)
+ const char *UNUSED(email),
+ timestamp_t timestamp, int UNUSED(tz),
+ const char *UNUSED(message), void *cb_data)
{
const char *refname = cb_data;
return ret;
}
-static int reject_reflog_ent(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
- const char *message, void *cb_data)
+static int reject_reflog_ent(struct object_id *UNUSED(ooid),
+ struct object_id *UNUSED(noid),
+ const char *UNUSED(email),
+ timestamp_t UNUSED(timestamp),
+ int UNUSED(tz), const char *UNUSED(message),
+ void *UNUSED(cb_data))
{
return 1;
}
}
static int collect_one_reflog_ent(struct object_id *ooid, struct object_id *noid,
- const char *ident, timestamp_t timestamp,
- int tz, const char *message, void *cbdata)
+ const char *UNUSED(ident),
+ timestamp_t UNUSED(timestamp), int UNUSED(tz),
+ const char *UNUSED(message), void *cbdata)
{
struct rev_collect *revs = cbdata;
struct strbuf *sb;
};
-static int grab_nth_branch_switch(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
+static int grab_nth_branch_switch(struct object_id *UNUSED(ooid),
+ struct object_id *UNUSED(noid),
+ const char *UNUSED(email),
+ timestamp_t UNUSED(timestamp),
+ int UNUSED(tz),
const char *message, void *cb_data)
{
struct grab_nth_branch_switch_cbdata *cb = cb_data;
* Return true iff the specified reflog entry should be expired.
*/
int should_expire_reflog_ent(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
- const char *message, void *cb_data)
+ const char *UNUSED(email),
+ timestamp_t timestamp, int UNUSED(tz),
+ const char *UNUSED(message), void *cb_data)
{
struct expire_reflog_policy_cb *cb = cb_data;
struct commit *old_commit, *new_commit;
}
}
-int count_reflog_ent(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
- const char *message, void *cb_data)
+int count_reflog_ent(struct object_id *UNUSED(ooid),
+ struct object_id *UNUSED(noid),
+ const char *UNUSED(email),
+ timestamp_t timestamp, int UNUSED(tz),
+ const char *UNUSED(message), void *cb_data)
{
struct cmd_reflog_expire_cb *cb = cb_data;
if (!cb->expire_total || timestamp < cb->expire_total)
}
static int read_ref_at_ent(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
- const char *message, void *cb_data)
+ const char *UNUSED(email),
+ timestamp_t timestamp, int tz,
+ const char *message, void *cb_data)
{
struct read_ref_at_cb *cb = cb_data;
int reached_count;
}
static int read_ref_at_ent_oldest(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp,
- int tz, const char *message, void *cb_data)
+ const char *UNUSED(email),
+ timestamp_t timestamp, int tz,
+ const char *message, void *cb_data)
{
struct read_ref_at_cb *cb = cb_data;
};
/* Get the timestamp of the latest entry. */
-static int peek_reflog(struct object_id *o_oid, struct object_id *n_oid,
- const char *ident, timestamp_t timestamp,
- int tz, const char *message, void *cb_data)
+static int peek_reflog(struct object_id *UNUSED(o_oid),
+ struct object_id *UNUSED(n_oid),
+ const char *UNUSED(ident),
+ timestamp_t timestamp, int UNUSED(tz),
+ const char *UNUSED(message), void *cb_data)
{
timestamp_t *ts = cb_data;
*ts = timestamp;
return 1;
}
-static int check_and_collect_until(struct object_id *o_oid,
+static int check_and_collect_until(struct object_id *UNUSED(o_oid),
struct object_id *n_oid,
- const char *ident, timestamp_t timestamp,
- int tz, const char *message, void *cb_data)
+ const char *UNUSED(ident),
+ timestamp_t timestamp, int UNUSED(tz),
+ const char *UNUSED(message), void *cb_data)
{
struct commit *commit;
struct check_and_collect_until_cb_data *cb = cb_data;
}
static int handle_one_reflog_ent(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
- const char *message, void *cb_data)
+ const char *UNUSED(email),
+ timestamp_t UNUSED(timestamp),
+ int UNUSED(tz),
+ const char *UNUSED(message),
+ void *cb_data)
{
handle_one_reflog_commit(ooid, cb_data);
handle_one_reflog_commit(noid, cb_data);
static int each_reflog(struct object_id *old_oid, struct object_id *new_oid,
const char *committer, timestamp_t timestamp,
- int tz, const char *msg, void *cb_data)
+ int tz, const char *msg, void *UNUSED(cb_data))
{
printf("%s %s %s %" PRItime " %+05d%s%s", oid_to_hex(old_oid),
oid_to_hex(new_oid), committer, timestamp, tz,
wt_longstatus_print_trailer(s);
}
-static int stash_count_refs(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
- const char *message, void *cb_data)
+static int stash_count_refs(struct object_id *UNUSED(ooid),
+ struct object_id *UNUSED(noid),
+ const char *UNUSED(email),
+ timestamp_t UNUSED(timestamp), int UNUSED(tz),
+ const char *UNUSED(message), void *cb_data)
{
int *c = cb_data;
(*c)++;
struct object_id noid;
};
-static int grab_1st_switch(struct object_id *ooid, struct object_id *noid,
- const char *email, timestamp_t timestamp, int tz,
+static int grab_1st_switch(struct object_id *UNUSED(ooid),
+ struct object_id *noid,
+ const char *UNUSED(email),
+ timestamp_t UNUSED(timestamp), int UNUSED(tz),
const char *message, void *cb_data)
{
struct grab_1st_switch_cbdata *cb = cb_data;