Skip to content

Commit

Permalink
More unused code caught by newer Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
dcwhite committed Oct 27, 2023
1 parent f9dc785 commit 064c0ea
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/Externals/libxml2/catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@ xmlParseSGMLCatalogPubid(const xmlChar *cur, xmlChar **id) {
int len = 0;
int size = 50;
xmlChar stop;
int count = 0;
//int count = 0;

*id = NULL;

Expand Down Expand Up @@ -2197,7 +2197,7 @@ xmlParseSGMLCatalogPubid(const xmlChar *cur, xmlChar **id) {
buf = tmp;
}
buf[len++] = *cur;
count++;
//count++;
NEXT;
}
buf[len] = 0;
Expand Down
10 changes: 5 additions & 5 deletions src/Externals/libxml2/debugXML.c
Original file line number Diff line number Diff line change
Expand Up @@ -2803,7 +2803,7 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
{
char prompt[500] = "/ > ";
char *cmdline = NULL, *cur;
int nbargs;
//int nbargs;
char command[100];
char arg[400];
int i;
Expand Down Expand Up @@ -2855,7 +2855,7 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
* Parse the command itself
*/
cur = cmdline;
nbargs = 0;
//nbargs = 0;
while ((*cur == ' ') || (*cur == '\t'))
cur++;
i = 0;
Expand All @@ -2868,7 +2868,7 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
command[i] = 0;
if (i == 0)
continue;
nbargs++;
//nbargs++;

/*
* Parse the argument
Expand All @@ -2882,8 +2882,8 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
arg[i++] = *cur++;
}
arg[i] = 0;
if (i != 0)
nbargs++;
//if (i != 0)
// nbargs++;

/*
* start interpreting the command
Expand Down
6 changes: 3 additions & 3 deletions src/Externals/libxml2/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ xmlDictLookup(xmlDictPtr dict, const xmlChar *name, int len) {
*/
const xmlChar *
xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len) {
unsigned long key, okey, nbi = 0;
unsigned long key, okey = 0;
xmlDictEntryPtr insert;

if ((dict == NULL) || (name == NULL))
Expand Down Expand Up @@ -709,7 +709,7 @@ xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len) {
(!xmlStrncmp(insert->name, name, len)))
return(insert->name);
#endif
nbi++;
//nbi++;
}
#ifdef __GNUC__
if (insert->len == len) {
Expand Down Expand Up @@ -740,7 +740,7 @@ xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len) {
(!xmlStrncmp(tmp->name, name, len)))
return(tmp->name);
#endif
nbi++;
//nbi++;
}
#ifdef __GNUC__
if (tmp->len == len) {
Expand Down
6 changes: 3 additions & 3 deletions src/Externals/libxml2/xmlschemas.c
Original file line number Diff line number Diff line change
Expand Up @@ -19340,7 +19340,7 @@ xmlSchemaAssembleByXSI(xmlSchemaValidCtxtPtr vctxt)
{
const xmlChar *cur, *end;
const xmlChar *nsname = NULL, *location;
int count = 0;
//int count = 0;
int ret = 0;
xmlSchemaAttrInfoPtr iattr;

Expand Down Expand Up @@ -19368,7 +19368,7 @@ xmlSchemaAssembleByXSI(xmlSchemaValidCtxtPtr vctxt)
end++;
if (end == cur)
break;
count++;
//count++;
nsname = xmlDictLookup(vctxt->schema->dict, cur, end - cur);
cur = end;
}
Expand All @@ -19382,7 +19382,7 @@ xmlSchemaAssembleByXSI(xmlSchemaValidCtxtPtr vctxt)
end++;
if (end == cur)
break;
count++;
//count++;
location = xmlDictLookup(vctxt->schema->dict, cur, end - cur);
cur = end;
ret = xmlSchemaAssembleByLocation(vctxt, vctxt->schema,
Expand Down
4 changes: 2 additions & 2 deletions src/Externals/libxml2/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -11008,7 +11008,7 @@ xmlXPathRunStreamEval(xmlXPathContextPtr ctxt, xmlPatternPtr comp) {
xmlXPathObjectPtr retval;
xmlStreamCtxtPtr patstream;

int nb_nodes = 0;
//int nb_nodes = 0;

if ((ctxt == NULL) || (comp == NULL))
return(NULL);
Expand Down Expand Up @@ -11098,7 +11098,7 @@ xmlXPathRunStreamEval(xmlXPathContextPtr ctxt, xmlPatternPtr comp) {
goto scan_children;
do {
next_node:
nb_nodes++;
//nb_nodes++;
if (cur->type == XML_ELEMENT_NODE) {
ret = xmlStreamPush(patstream, cur->name,
(cur->ns ? cur->ns->href : NULL));
Expand Down

0 comments on commit 064c0ea

Please sign in to comment.