avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Question regarding the format attribute


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Question regarding the format attribute
Date: Wed, 24 Jan 2007 20:57:08 +0100 (MET)

"PAZ" <address@hidden> wrote:

> The call 'MY_printf(PSTR("%s"), 1234);' no longer gives the desired
> warning that there is a mismatch between the printf like format and
> the argument list.

If you look at the dirty tricks that are applied in order to bring
the format string into program memory, it should be clear the
compiler has no chance to analyze that string at compile-time.
-- 
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]