avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] [bug #14266] use __extension__ in avr-libc header files


From: anonymous
Subject: [avr-libc-dev] [bug #14266] use __extension__ in avr-libc header files
Date: Tue, 23 Aug 2005 18:56:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

URL:
  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14266>

                 Summary: use __extension__ in avr-libc header files
                 Project: AVR C Runtime Library
            Submitted by: None
            Submitted on: Tue 08/23/05 at 18:56
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open

    _______________________________________________________

Details:

On avr-chat, a user noted that certain macros (apparently including PSTR()
and pgm_read_byte()) would give warnings under "-ansi -pedantic".

Adding __extension__ to these macros in avr-libc header files will allow the
macros to be used without triggering warnins with these flags.

Example:
#define PSTR(s) (__extension__({static char __c[] PROGMEM = (s); __c;}))

Original thread:
http://lists.gnu.org/archive/html/avr-chat/2005-08/msg00029.html



    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
jepler --AT-- unpythonic --DOT-- net | Originator Email




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14266>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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