Introduction to ARM Semihosting | Interrupt

The (void) statements you are referring to tell the compiler the variables are not used. This will prevent warnings about them.