ChibiOS-2.6.6 compiler warning
Posted: Tue Sep 23, 2014 12:47 pm
When porting my project to 2.6.6 I noticed the following
It seems the logic that manipulates the variable 'dier' is within a #if STM32_PWM_USE_TIM1 block, and if not enabled, the dier variable is unecessary.
Code: Select all
..//os/hal/platforms/STM32/TIMv1/pwm_lld.c:402:12: warning: unused variable ‘dier’ [-Wunused-variable]
It seems the logic that manipulates the variable 'dier' is within a #if STM32_PWM_USE_TIM1 block, and if not enabled, the dier variable is unecessary.