diff --git a/os/hal/platforms/SPC5xx/FlexCAN_v1/can_lld.c b/os/hal/platforms/SPC5xx/FlexCAN_v1/can_lld.c index a7205231e..d8bda8da2 100644 --- a/os/hal/platforms/SPC5xx/FlexCAN_v1/can_lld.c +++ b/os/hal/platforms/SPC5xx/FlexCAN_v1/can_lld.c @@ -81,6 +81,7 @@ CANDriver CAND6; */ static void can_lld_tx_handler(CANDriver *canp) { uint32_t iflag1, iflag2; + (void)iflag2; /* No more events until a message is transmitted.*/ iflag1 = canp->flexcan->IFRL.R;