Include hint about cast(void) in warning message
Sync test with changes to warning message format