Unused variable warning in critical section

`CRITICAL_SECTION_ALLOC()` declares a `int16_t __critctrl` variable, which is not used in `CRITICAL_SECTION_ENTER()` and `CRITICAL_SECTION_EXIT()` and therefore generates a compiler warning.
How about adding a cast to void?