Re: [avr-gcc-list] PROGMEM on compound-literal arrays

2016-11-06 Thread Paul "LeoNerd" Evans
On Sun, 30 Oct 2016 20:17:51 +0100 Georg-Johann Lay wrote: > Well, code like > > i2c_write ( > #include "data.def" > ); > > where data.def contains > > 4, (const uint8_t[]){0x10, 0x20, 0x30, 0x40} > > might be in order for auto generated code, but solutions that first >

Re: [avr-gcc-list] PROGMEM on compound-literal arrays

2016-10-30 Thread Georg-Johann Lay
Paul "LeoNerd" Evans schrieb: ((TLDR: PROGMEM on compound-literal arrays is silently ignored. Please either implement or make it a noisy warning/error.)) If I define a function that takes a byte array, e.g. void i2c_write(size_t len, const uint8_t *data); I find it nice to be able to