This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/60654] format warnings don't work with PROGMEM/PSTR
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Mar 2014 16:47:21 +0000
- Subject: [Bug c/60654] format warnings don't work with PROGMEM/PSTR
- Auto-submitted: auto-generated
- References: <bug-60654-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60654
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gjl at gcc dot gnu.org
Severity|normal |enhancement
--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
External links are not helpful, a bug report should be self contained, c.f. the
bug reporting instructions at
http://gcc.gnu.org/bugs/#report
The usual definitions for the above macros are:
#define PROGMEM __attribute__((__progmem__))
#define PGM_P const char *
#define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s);
&__c[0];}))