Replace a cast to void with pragma unused