I really doubt any compilers will warn on void* casts in pure C. Usually the warning is if you do:
int *x;
char *y = x;
or similar. But if x was "void*", it really should work on all C compilers.