static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { (void)ud; (void)osize; /* some code not using `ud` or `osize` */ return ptr; }
Do the two casts to void serve any purpose?
In some project, I have seen this code:
static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { (void)ud; (void)osize; /* some code not using `ud` or `osize` */ return ptr; }
Do the two casts to void serve any purpose?
In some C project, I have seen this code:
static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { (void)ud; (void)osize; /* some code not using `ud` or `osize` */ return ptr; }
Do the two casts to void serve any purpose?
Post Reopened by Antti Haapala cUsers with the c badge or a synonym can single-handedly close c questions as duplicates and reopen them as needed.
Post Closed as "Duplicate" by Paul R cUsers with the c badge or a synonym can single-handedly close c questions as duplicates and reopen them as needed.