From 81c01ee9ff1493a92dfb3e679a0d6f45d59622aa Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 17 Jun 2017 14:12:53 +0200 Subject: [PATCH] Fix unused-parameter warnings --- example/gjobread.c | 2 +- runtest.c | 3 ++- xmlIO.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example/gjobread.c b/example/gjobread.c index d3f6d57d..a435ca4f 100644 --- a/example/gjobread.c +++ b/example/gjobread.c @@ -177,7 +177,7 @@ typedef struct gjob { static gJobPtr -parseGjobFile(char *filename) { +parseGjobFile(char *filename ATTRIBUTE_UNUSED) { xmlDocPtr doc; gJobPtr ret; jobPtr curjob; diff --git a/runtest.c b/runtest.c index 03816a8f..714de275 100644 --- a/runtest.c +++ b/runtest.c @@ -2163,7 +2163,8 @@ static void processNode(FILE *out, xmlTextReaderPtr reader) { } static int streamProcessTest(const char *filename, const char *result, const char *err, - xmlTextReaderPtr reader, const char *rng, int options) { + xmlTextReaderPtr reader, const char *rng, + int options ATTRIBUTE_UNUSED) { int ret; char *temp = NULL; FILE *t = NULL; diff --git a/xmlIO.c b/xmlIO.c index 8c6509dd..14b3c15d 100644 --- a/xmlIO.c +++ b/xmlIO.c @@ -1876,7 +1876,7 @@ xmlIOHTTPOpen (const char *filename) { */ void * -xmlIOHTTPOpenW(const char *post_uri, int compression) +xmlIOHTTPOpenW(const char *post_uri, int compression ATTRIBUTE_UNUSED) { xmlIOHTTPWriteCtxtPtr ctxt = NULL;