Page 1 of 1

ChibiOS-2.6.6 compiler warning

Posted: Tue Sep 23, 2014 12:47 pm
by dflogeras
When porting my project to 2.6.6 I noticed the following

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.

Re: ChibiOS-2.6.6 compiler warning

Posted: Tue Sep 23, 2014 1:00 pm
by Giovanni
Hi,

I removed the variable, it was no more required after a recent change.

Giovanni