bugAVR C Runtime Library - Bugs: bug #14266, use __extension__ in avr-libc...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14266: use __extension__ in avr-libc header files

Submitter:  None
Submitted:  Tue 23 Aug 2005 06:56:22 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  joerg_wunsch
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Tue 23 Aug 2005 06:56:22 PM UTC, original submission:  

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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-08 joerg_wunsch StatusNone Fixed
    Assigned toNone joerg_wunsch
    Open/ClosedOpen Closed
2005-08-23 None Carbon-Copy- Added jepler --AT-- unpythonic --DOT-- net

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code