order of volatile accesses is undefined

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
asfarley
Posts: 8
Joined: Thu Dec 13, 2012 7:19 pm

order of volatile accesses is undefined

Post by asfarley »

Hi,

I'm getting this warning when I include/enable the ICU subsystem:

Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this C:\Users\asfarley\Desktop\ChibiOS_2.4.2\ChibiOS_2.4.2\os\hal\platforms\STM32\icu_lld.c 109

This is using IAR-EW. Is this expected? Thanks,

Alexander
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: order of volatile accesses is undefined

Post by Giovanni »

Hi,

It should be OK but please open a ticket, warnings are not supposed to be present.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: order of volatile accesses is undefined

Post by Giovanni »

I created the ticker myself: 3598177

Giovanni
Post Reply