Hi team
How do I get rid of this error:
How do I get rid of this error:
Here is my code, as you can see, all pointers are already checked.cbuff.c:111:: warning: (1498) pointer (CBUFF_OBJ_construct@cbuff) in expression may have no targets
C:
CBUFF_OBJ_Handle CBUFF_OBJ_construct(volatile CBUFF_OBJ_Struct *cbuff, volatile uint8_t *data, uint16_t obj_size, uint16_t capacity){
/* make sure pointers are valid */
if (cbuff == 0) return 0;
if (data == 0) return 0;
/* all pointers below have this warning */
cbuff->capacity = capacity;
cbuff->count = 0;
cbuff->head = 0;
cbuff->tail = 0;
cbuff->data = data;
cbuff->obj_size = obj_size;
return (CBUFF_OBJ_Handle)cbuff;
}