diff --git a/autotest/test_rbtree.tcc b/autotest/test_rbtree.tcc index 6a60aae..b946506 100644 --- a/autotest/test_rbtree.tcc +++ b/autotest/test_rbtree.tcc @@ -116,7 +116,6 @@ EXO_TEST(rbtree_iterate_10000, { struct rb_node* n = (struct rb_node*) rb_tree_first(tree); while (n) { - struct rb_node* p = n; n = (struct rb_node*) rb_tree_next(tree); i++; } @@ -132,7 +131,6 @@ static void free_node(struct rb_node* n) EXO_TEST(rbtree_remove_5000, { int i = 0; - struct rb_node* n = (struct rb_node*) rb_tree_first(tree); for (i = 0; i < MAX_NODES ; i += 2) { const char* key = uhub_itoa(i); diff --git a/src/network/connection.c b/src/network/connection.c index 9bc8ecf..c87e0f0 100644 --- a/src/network/connection.c +++ b/src/network/connection.c @@ -283,7 +283,6 @@ static int net_connect_job_process(struct net_connect_job* job) */ static void net_connect_job_internal_cb(struct net_connection* con, int event, void* ptr) { - int ret; struct net_connect_job* job = net_con_get_ptr(con); struct net_connect_job* next_job = job->next; struct net_connect_handle* handle = job->handle; @@ -441,7 +440,6 @@ static int net_con_connect_dns_callback(struct net_dns_job* job, const struct ne struct net_connect_handle* handle = (struct net_connect_handle*) net_dns_job_get_ptr(job); handle->dns = NULL; size_t usable = 0; - int ret; LOG_TRACE("net_con_connect(): async - Got DNS results"); if (!result) diff --git a/src/network/dnsresolver.c b/src/network/dnsresolver.c index 0484e9a..fd6ac91 100644 --- a/src/network/dnsresolver.c +++ b/src/network/dnsresolver.c @@ -99,9 +99,6 @@ void net_dns_initialize() void net_dns_destroy() { - struct net_dns_job* job; - struct net_dns_result* result; - uhub_mutex_lock(&g_dns->mutex); LOG_TRACE("net_dns_destroy(): jobs=%d", (int) list_size(g_dns->jobs)); list_clear(g_dns->jobs, &shutdown_free_jobs);