diff options
author | Nico Weber <thakis@chromium.org> | 2012-03-05 16:36:59 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-03-05 16:36:59 +0800 |
commit | cedf84d35ab127dd24f9bcbf8b8339518d0e8928 (patch) | |
tree | fb5a7f4cb50581215bd8d9484f71976ab3a34cfd /pattern.c | |
parent | 5cf1deb080fdc92b171410d72ae0a9e45d57382c (diff) | |
download | android_external_libxml2-cedf84d35ab127dd24f9bcbf8b8339518d0e8928.tar.gz android_external_libxml2-cedf84d35ab127dd24f9bcbf8b8339518d0e8928.tar.bz2 android_external_libxml2-cedf84d35ab127dd24f9bcbf8b8339518d0e8928.zip |
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.
Diffstat (limited to 'pattern.c')
-rw-r--r-- | pattern.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |