[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] "sized pointer" increment
From: |
Dusan Ferbas |
Subject: |
[avr-gcc-list] "sized pointer" increment |
Date: |
Thu, 22 May 2008 16:26:17 +0200 |
Hi guys,
"pointer size" increments, in a snippet below, work with
WinAVR-20060421 (avr-gcc 3.4.6), but does not in WinAVR-20071221
(avr-gcc 4.2.2).
Compiler claims casted pointer as not an lvalue.
Is this correct behaviour ?
unsigned char *p_received_data;
boot_info_header->section_length = *((unsigned
long*)p_received_data)++;
boot_info_header->address = *((unsigned short*)p_received_data)++;
Dusan
- [avr-gcc-list] "sized pointer" increment,
Dusan Ferbas <=