avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] troublesome compilation warning


From: Joerg Wunsch
Subject: Re: [avr-chat] troublesome compilation warning
Date: Mon, 22 Aug 2005 22:14:24 +0200 (MET DST)

Artur Lipowski <address@hidden> wrote:

> When -pedantic is enabled (GCC 3.4.4) compiler produces following
> message for each line with the pgm_read_byte:

> "ISO C forbids braced-groups within expressions"

Not pgm_read_byte I think but rather PSTR(), isn't it?

I think PSTR() (ab?)uses that feature.

> Do somebody know how to avoid this?

Probably only by avoiding PSTR.  Then, you've got to declare all your
pgmspace strings outside of expressions, and use the respective
symbols inside the expression.

> Is it a problem with my code or the avr-libc?

avr-libc

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]