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

 
 

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

Submitted by:  None
Submitted on:  Tue 23 Aug 2005 06:56:22 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 08 Sep 2005 09:19:49 PM UTCjoerg_wunschStatusNone=>Fixed
  Assigned toNone=>joerg_wunsch
  Open/ClosedOpen=>Closed
Tue 23 Aug 2005 06:56:23 PM UTCNoneCarbon-Copy-=>Added jepler --AT-- unpythonic --DOT-- net

Back to the top


Powered by Savane 3.1-cleanup1