This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/60654] format warnings don't work with PROGMEM/PSTR


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];}))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]