]> git.ipfire.org Git - thirdparty/git.git/commitdiff
http-push: mark unused parameter in xml callback
authorJeff King <peff@peff.net>
Mon, 3 Jul 2023 06:44:08 +0000 (02:44 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jul 2023 00:23:59 +0000 (17:23 -0700)
The xml_start_tag() function is passed the expat library's
XML_SetElementHandler() function, so it has to conform to the
expected interface. But we don't actually care about the attributes
list. Mark it so that -Wunused-parameter does not complain.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c

index 9ab2383d2b4a6c312935cbe0687872a3d1d719a5..a704f490fdb2c2144b47a5629ed9ee0643ab0d83 100644 (file)
@@ -783,7 +783,7 @@ static void handle_new_lock_ctx(struct xml_ctx *ctx, int tag_closed)
 static void one_remote_ref(const char *refname);
 
 static void
-xml_start_tag(void *userData, const char *name, const char **atts)
+xml_start_tag(void *userData, const char *name, const char **atts UNUSED)
 {
        struct xml_ctx *ctx = (struct xml_ctx *)userData;
        const char *c = strchr(name, ':');