I did not care on warnings. But they put me in trouble lately.
When compiler comes to the statement below it gives the warning.
/* void ** vpSec00 comes as an argument */
int hSec = 0;
size_t nbytes;
*vpSec00 = bitio_o_close(hSec0, &nbytes);
it says:
warning: assignment makes pointer from integer without a cast
if i cast it as :
/* void ** vpSec00 comes as an argument */
*vpSec00 = (void *) bitio_o_close(hSec0, &nbytes);
it says:
warning: cast to pointer from integer of different size
bitio_o_close function returns char array as:
return (void *) bios[handle].buf;
why would i need casting here? Because Salem said that I should stay away from redundant casting in function returns.