------- Comment #2 from gcc-david at tulloh dot id dot au  2008-02-04 22:14 
-------
Yes, I didn't provide any context.  I believe that this warning should apply
any time you are working with volatile variables.


A truncated real world example (kind of, real world debugging).

volatile static uint8_t OutputBuffer[4];

int16_t main(void) {
  while(1) {
    *(uint16_t *)(OutputBuffer)++;
  }
}

ISR(PCINT0_vect) {
  implement software SPI interface, transmit OutputBuffer in reverse byte
order.
}


-- 

gcc-david at tulloh dot id dot au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35069

Reply via email to