1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

Fix -Wempty-body warning from clang

clang recently grew a warning on `for (...);`. This patch
fixes all two instances of this pattern in libxml. The changes
don't modify the code semantic.
This commit is contained in:
Nico Weber
2012-03-05 16:36:59 +08:00
committed by Daniel Veillard
parent 5cf1deb080
commit cedf84d35a
2 changed files with 7 additions and 5 deletions

View File

@@ -305,7 +305,8 @@ xmlNewPatParserContext(const xmlChar *pattern, xmlDictPtr dict,
cur->base = pattern;
if (namespaces != NULL) {
int i;
for (i = 0;namespaces[2 * i] != NULL;i++);
for (i = 0;namespaces[2 * i] != NULL;i++)
;
cur->nb_namespaces = i;
} else {
cur->nb_namespaces = 0;