From: Sebastian Pipping Date: Sun, 29 Sep 2019 17:25:54 +0000 (+0200) Subject: xmlparse.c|xmlrole.c: Fix compiler warning "unused parameter" with -DEXPAT_DTD=OFF X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24a912c12cc84c32d190b029892c0707ea5ba766;p=libexpat xmlparse.c|xmlrole.c: Fix compiler warning "unused parameter" with -DEXPAT_DTD=OFF --- 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;