Merge branch 'solve-warnings.marcomaggi-2018-10-30' (fixes #235)
This commit is contained in:
commit
b21ab1d1f4
@ -8084,23 +8084,25 @@ START_TEST(test_misc_features)
|
|||||||
|
|
||||||
/* Prevent problems with double-freeing parsers */
|
/* Prevent problems with double-freeing parsers */
|
||||||
g_parser = NULL;
|
g_parser = NULL;
|
||||||
if (features == NULL)
|
if (features == NULL) {
|
||||||
fail("Failed to get feature information");
|
fail("Failed to get feature information");
|
||||||
/* Loop through the features checking what we can */
|
} else {
|
||||||
while (features->feature != XML_FEATURE_END) {
|
/* Loop through the features checking what we can */
|
||||||
switch(features->feature) {
|
while (features->feature != XML_FEATURE_END) {
|
||||||
case XML_FEATURE_SIZEOF_XML_CHAR:
|
switch(features->feature) {
|
||||||
if (features->value != sizeof(XML_Char))
|
case XML_FEATURE_SIZEOF_XML_CHAR:
|
||||||
fail("Incorrect size of XML_Char");
|
if (features->value != sizeof(XML_Char))
|
||||||
break;
|
fail("Incorrect size of XML_Char");
|
||||||
case XML_FEATURE_SIZEOF_XML_LCHAR:
|
break;
|
||||||
if (features->value != sizeof(XML_LChar))
|
case XML_FEATURE_SIZEOF_XML_LCHAR:
|
||||||
fail("Incorrect size of XML_LChar");
|
if (features->value != sizeof(XML_LChar))
|
||||||
break;
|
fail("Incorrect size of XML_LChar");
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
features++;
|
||||||
}
|
}
|
||||||
features++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
Loading…
Reference in New Issue
Block a user