]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/commitdiff
uLUt: Get rid of compiler warnings
authorMichal Sojka <sojka@os.inf.tu-dresden.de>
Tue, 7 Feb 2012 23:04:19 +0000 (00:04 +0100)
committerMichal Sojka <sojka@os.inf.tu-dresden.de>
Tue, 7 Feb 2012 23:09:57 +0000 (00:09 +0100)
src/ulut/ulut/ul_gavlcust.h

index 2a46a6cfc2fde1b2bb9afbca4a9fe0fbfbba3b4d..09868f1ee33dc2e1bfe1e1d69a75eb0a3c285216 100644 (file)
@@ -121,7 +121,6 @@ int cust_prefix##_delete_node(cust_root_t *root, gavl_node_t *node)\
 \
 int cust_prefix##_delete(cust_root_t *root, cust_item_t *item)\
 {\
-  int ret;\
   gavl_node_t *n, *p;\
   if(!item) return -1;\
   /*if(cust_prefix##_search_node(root, &item->cust_item_key, &n))*/\
@@ -130,7 +129,7 @@ int cust_prefix##_delete(cust_root_t *root, cust_item_t *item)\
   for(p=n; p->parent; p=p->parent);\
   if(p!=root->cust_root_node)\
     return -1;\
-  ret=gavl_delete_primitive(&root->cust_root_node, n);\
+  gavl_delete_primitive(&root->cust_root_node, n);\
   return 1;\
 }\
 \