Skip to content

Commit d051f17

Browse files
peffgitster
authored andcommitted
fast-export: drop unused parameter from anonymize_commit_message()
As the comment above the function indicates, we do not bother actually storing commit messages in our anonymization map. But we still take the message as a parameter, and just ignore it. Let's stop doing that, which will make -Wunused-parameter happier. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 65c756f commit d051f17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/fast-export.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ static const char *anonymize_refname(const char *refname)
556556
* We do not even bother to cache commit messages, as they are unlikely
557557
* to be repeated verbatim, and it is not that interesting when they are.
558558
*/
559-
static char *anonymize_commit_message(const char *old)
559+
static char *anonymize_commit_message(void)
560560
{
561561
static int counter;
562562
return xstrfmt("subject %d\n\nbody\n", counter++);
@@ -683,7 +683,7 @@ static void handle_commit(struct commit *commit, struct rev_info *rev,
683683

684684
mark_next_object(&commit->object);
685685
if (anonymize) {
686-
reencoded = anonymize_commit_message(message);
686+
reencoded = anonymize_commit_message();
687687
} else if (encoding) {
688688
switch(reencode_mode) {
689689
case REENCODE_YES:

0 commit comments

Comments
 (0)