Cast unused parameters to void to prevent unused parameter warnings

Source: