summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-02-22 19:57:12 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2022-02-22 19:57:12 +0100
commitc41bc10da31a4a4e5416270110b6d1b79606cad1 (patch)
tree44871f4d7bf78fac7ce425d93e273a7141decced /xmllint.c
parent4fd69f3e27e4ef2f8fafa091e723497017c40646 (diff)
downloadlibxml2-c41bc10da31a4a4e5416270110b6d1b79606cad1.tar.gz
Fix unused variable warnings with disabled features
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmllint.c b/xmllint.c
index ee6bfdc5..b314189f 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -3853,6 +3853,9 @@ main(int argc, char **argv) {
xmlFreePattern(patternc);
#endif
+ /* Avoid unused label warning if features are disabled. */
+ goto error;
+
error:
xmlCleanupParser();
xmlMemoryDump();