Remove unused variables
diff --git a/doc/examples/tree2.c b/doc/examples/tree2.c
index 1cd1abe..6548e29 100644
--- a/doc/examples/tree2.c
+++ b/doc/examples/tree2.c
@@ -27,7 +27,6 @@
{
xmlDocPtr doc = NULL; /* document pointer */
xmlNodePtr root_node = NULL, node = NULL, node1 = NULL;/* node pointers */
- xmlDtdPtr dtd = NULL; /* DTD pointer */
char buff[256];
int i, j;
@@ -43,7 +42,7 @@
/*
* Creates a DTD declaration. Isn't mandatory.
*/
- dtd = xmlCreateIntSubset(doc, BAD_CAST "root", NULL, BAD_CAST "tree2.dtd");
+ xmlCreateIntSubset(doc, BAD_CAST "root", NULL, BAD_CAST "tree2.dtd");
/*
* xmlNewChild() creates a new node, which is "attached" as child node
diff --git a/timsort.h b/timsort.h
index 9369e7c..19aebf2 100644
--- a/timsort.h
+++ b/timsort.h
@@ -394,7 +394,7 @@
{
while (1) {
int64_t A, B, C, D;
- int ABC, BCD, BD, CD;
+ int ABC, BCD, CD;
/* if the stack only has one thing on it, we are done with the collapse */
if (stack_curr <= 1) {
@@ -431,7 +431,6 @@
BCD = (B <= C + D) || ABC;
CD = (C <= D);
- BD = (B < D);
/* Both invariants are good */
if (!BCD && !CD) {