Squashed C++ void * casting warning