From 24a912c12cc84c32d190b029892c0707ea5ba766 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 29 Sep 2019 19:25:54 +0200 Subject: [PATCH] xmlparse.c|xmlrole.c: Fix compiler warning "unused parameter" with -DEXPAT_DTD=OFF --- expat/lib/xmlparse.c | 1 + expat/lib/xmlrole.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 1ba48530..829e2b35 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -1401,6 +1401,7 @@ XML_UseForeignDTD(XML_Parser parser, XML_Bool useDTD) { parser->m_useForeignDTD = useDTD; return XML_ERROR_NONE; #else + UNUSED_P(useDTD); return XML_ERROR_FEATURE_REQUIRES_XML_DTD; #endif } diff --git a/expat/lib/xmlrole.c b/expat/lib/xmlrole.c index 4d3e3e86..3b676a41 100644 --- a/expat/lib/xmlrole.c +++ b/expat/lib/xmlrole.c @@ -1220,6 +1220,8 @@ common(PROLOG_STATE *state, int tok) { #ifdef XML_DTD if (! state->documentEntity && tok == XML_TOK_PARAM_ENTITY_REF) return XML_ROLE_INNER_PARAM_ENTITY_REF; +#else + UNUSED_P(tok); #endif state->handler = error; return XML_ROLE_ERROR;