Merge branch 'jk/unused-parameter'
Mark-up unused parameters in the code so that we can eventually enable -Wunused-parameter by default. * jk/unused-parameter: t/helper: mark unused callback void data parameters tag: mark unused parameters in each_tag_name_fn callbacks rev-parse: mark unused parameter in for_each_abbrev callback replace: mark unused parameter in each_mergetag_fn callback replace: mark unused parameter in ref callback merge-tree: mark unused parameter in traverse callback fsck: mark unused parameters in various fsck callbacks revisions: drop unused "opt" parameter in "tweak" callbacks count-objects: mark unused parameter in alternates callback am: mark unused keep_cr parameters http-push: mark unused parameter in xml callback http: mark unused parameters in curl callbacks do_for_each_ref_helper(): mark unused repository parameter test-ref-store: drop unimplemented reflog-expire command
This commit is contained in:
@@ -786,7 +786,7 @@ static int split_mail_conv(mail_conv_fn fn, struct am_state *state,
|
||||
* A split_mail_conv() callback that converts an StGit patch to an RFC2822
|
||||
* message suitable for parsing with git-mailinfo.
|
||||
*/
|
||||
static int stgit_patch_to_mail(FILE *out, FILE *in, int keep_cr)
|
||||
static int stgit_patch_to_mail(FILE *out, FILE *in, int keep_cr UNUSED)
|
||||
{
|
||||
struct strbuf sb = STRBUF_INIT;
|
||||
int subject_printed = 0;
|
||||
@@ -869,7 +869,7 @@ static int split_mail_stgit_series(struct am_state *state, const char **paths,
|
||||
* A split_patches_conv() callback that converts a mercurial patch to a RFC2822
|
||||
* message suitable for parsing with git-mailinfo.
|
||||
*/
|
||||
static int hg_patch_to_mail(FILE *out, FILE *in, int keep_cr)
|
||||
static int hg_patch_to_mail(FILE *out, FILE *in, int keep_cr UNUSED)
|
||||
{
|
||||
struct strbuf sb = STRBUF_INIT;
|
||||
int rc = 0;
|
||||
|
||||
Reference in New Issue
Block a user