Compiles w/o warnings with gcc

FossilOrigin-Name: 8aeb5208592d4c31a07b3eba10aa247483f9648fbaba38eb844cb02e074f31b9
This commit is contained in:
7u83@mail.ru
2018-03-25 08:35:53 +00:00
parent 847781bf7c
commit f136a0f401
16 changed files with 60 additions and 55 deletions

View File

@ -3,15 +3,15 @@
void * ktvn(struct mavl *t ,const void *search)
{
struct mavlnode *n,*lastl,*lastb;
lastb = NULL; lastl=NULL;
struct mavlnode *n,/**lastl,*/*lastb;
lastb = NULL; /*lastl=NULL;*/
n = t->root;
while(n){
int rc;
const cw_KTV_t *c1,*c2;
c1=search;
/* const cw_KTV_t;*//* *c1,*c2;*/
/*c1=search;
c2=mavlnode_dataptr(n);
*/
rc = t->cmp(search,mavlnode_dataptr(n));
@ -23,7 +23,7 @@ void * ktvn(struct mavl *t ,const void *search)
}
if (rc<0){
lastl = n;
/*lastl = n;*/
if (n->left==NULL){
return mavlnode_dataptr(lastb);