[Top][All Lists]

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

[avr-gcc-list] New Compiler warning

From: Larry Barello
Subject: [avr-gcc-list] New Compiler warning
Date: Sat Jan 20 05:49:04 2001

I have installed Gunnar's release (very nice!)

I declare:
    #define FLASH __attribute__ ((progmem))
    void lcd_putstr(char *);
    static char foo[] FLASH = "foo";

and get the following warning:
LcdTask.c:56: warning: passing arg 1 of `lcd_putstr' discards qualifiers
from pointer target type

I suspect the compiler is noticing that I am passing a FLASH reference where
it expects DATA.  But I am unable to figure out the incantation needed to
make it stop complaining.  Could someone enlighten me?


reply via email to

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