cvra / platform-abstraction

Platform abstraction layer for microcontrollers
3 stars 6 forks source link

Unused variable warning in critical section #39

Closed msplr closed 10 years ago

msplr commented 10 years ago

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?

pierluca commented 10 years ago

lgtm