X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=parse-xml.c;h=9faa946f45a7ac64574312b8505d139d4e07f2ee;hb=992e58c9b4d996d98e26c55151201ff1216b4d08;hp=7fc3da2ed1ba84acd2c6867d957129cc2c3f156b;hpb=e1ef9687ac5b24e223f33050bd4ccde69c7cf227;p=pspp diff --git a/parse-xml.c b/parse-xml.c index 7fc3da2ed1..9faa946f45 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -117,7 +117,7 @@ print_attribute (xmlNode *node, const char *attr) } } -static xmlNode * +static __attribute__((unused)) xmlNode * find_page_setup (xmlNode *node) { for (; node; node = node->next) @@ -176,10 +176,14 @@ main (int argc, char **argv) } xmlNode *root = xmlDocGetRootElement(doc); + +#if 0 + /* Limit what we look at to pageSetup node and below. */ root = find_page_setup(root); if (!root) return 0; root->next = NULL; +#endif if (!strcmp(argv[2], "containment")) print_containment (root);