mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Remove a pedantic warning
This commit is contained in:
@ -1386,6 +1386,8 @@ htmlIsAutoClosed(htmlDocPtr doc, htmlNodePtr elem) {
|
|||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
htmlCheckImplied(htmlParserCtxtPtr ctxt, const xmlChar *newtag) {
|
htmlCheckImplied(htmlParserCtxtPtr ctxt, const xmlChar *newtag) {
|
||||||
|
int i;
|
||||||
|
|
||||||
if (!htmlOmittedDefaultValue)
|
if (!htmlOmittedDefaultValue)
|
||||||
return;
|
return;
|
||||||
if (xmlStrEqual(newtag, BAD_CAST"html"))
|
if (xmlStrEqual(newtag, BAD_CAST"html"))
|
||||||
@ -1422,7 +1424,6 @@ htmlCheckImplied(htmlParserCtxtPtr ctxt, const xmlChar *newtag) {
|
|||||||
/* we already saw or generated a <body> before */
|
/* we already saw or generated a <body> before */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int i;
|
|
||||||
for (i = 0;i < ctxt->nameNr;i++) {
|
for (i = 0;i < ctxt->nameNr;i++) {
|
||||||
if (xmlStrEqual(ctxt->nameTab[i], BAD_CAST"body")) {
|
if (xmlStrEqual(ctxt->nameTab[i], BAD_CAST"body")) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user