ChibiOS-2.6.6 compiler warning

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
dflogeras
Posts: 232
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 8 times
Been thanked: 22 times

ChibiOS-2.6.6 compiler warning

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ChibiOS-2.6.6 compiler warning

Post by Giovanni »

Hi,

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

Giovanni
Post Reply