http-push: mark unused parameter in xml callback
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>maint
parent
d0144007b1
commit
e519ac35af
|
@ -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, ':');
|
||||
|
|
Loading…
Reference in New Issue