xmlparse.c|xmlrole.c: Fix compiler warning "unused parameter" with -DEXPAT_DTD=OFF
This commit is contained in:
parent
d05afa5829
commit
24a912c12c
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user