This isn't a specific code question, more of a general question regarding some feedback I've been getting. I write C/C++ code quite frequently (which is not to say I'm any good at it, but that's another story), and occasionally I will cast a pointer, e.g.:
void **result = (void **) malloc(size);
I understand that in this particular case, I do not need it, the compiler should take care of it for me. However, whenever someone else looks at my code, I always seem to get rather snide remarks about the fact that I cast these variables. Is there something inherently wrong with using casting?