Cast function to void.