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:
committed by
Daniel Veillard
parent
5cf1deb080
commit
cedf84d35a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user