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;