Dave Hylands wrote:
>
> ... the two objects are in fact 100% identical, but the 2nd
> version has no warning.
>
> --
> Dave Hylands
> Shuswap, BC, Canada
> http://www.DaveHylands.com/
>
>
Bravo! I owe you a beer. compiles clean now. I did in fact have some hidden
warnings amongst the many PSTR warnings
> #include <avr/pgmspace.h>
>
> #ifdef __cplusplus
> #undef PROGMEM
> #define PROGMEM __attribute__(( section(".progmem.data") ))
> #undef PSTR
> #define P_STR(s) (__extension__({static prog_char __c[] PROGMEM =
> (s);&__c[0];}))
> #else
> #define P_STR(s) PSTR(s)
> #endif
>
>
I have been using P_STR(char*) in the hope that a solution would be found.
It also reminds me that it is not the same as PSTR(char*) in pgmspace.h
--
View this message in context:
http://old.nabble.com/C%2B%2B-with-PSTR-tp26664456p26669933.html
Sent from the AVR - gcc mailing list archive at Nabble.com.
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list