test BUGFIX remove unused variables
diff --git a/tests/utests/test_xpath.c b/tests/utests/test_xpath.c
index 47ebbfc..40bd014 100644
--- a/tests/utests/test_xpath.c
+++ b/tests/utests/test_xpath.c
@@ -322,10 +322,8 @@
         "<a>3</a>"
         "<b>1</b>"
     "</l2>";
-    struct lyd_node *tree, *node;
+    struct lyd_node *tree;
     struct ly_set *set;
-    int dynamic;
-    const char *val_str;
 
     tree = lyd_parse_mem(ctx, data, LYD_XML, LYD_OPT_STRICT | LYD_VALOPT_DATA_ONLY);
     assert_non_null(tree);