bugAVR C Runtime Library - Bugs: bug #24888, eeprom.h not compatible with...

 
 

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

bug #24888: eeprom.h not compatible with -mint8 compiler switch

Submitter:  Ken Krieger <kenk>
Submitted:  Thu 20 Nov 2008 07:58:06 AM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Wont Fix Assigned to:  arcanum
Percent Complete:  0% Open/Closed:  Closed
Release:  1.6.4 Fixed Release:  None

Thu 20 Nov 2008 01:55:15 PM UTC, comment #2: 

-mint8 is not supported in avr-libc. Closing bug as "Won't Fix".

Eric Weddington <arcanum>
Group administrator
Thu 20 Nov 2008 08:19:28 AM UTC, comment #1: 
Wouter <wutje>
Thu 20 Nov 2008 07:58:06 AM UTC, original submission:  


The function eeprom_write_byte() assigns the EEAR with the address passed in through the __p parameter. This parameter is declared as a pointer type in the function declaration, and then re-cast to "unsigned" at the assignment of it value to the EEAR.

when using the -mint8 compiler switch, "unsigned" becomes an 8-bit type, however, it is being assigned to a 16-bit location. The compiler throws a warning.

This is easily fixed by changing the "unsigned" casts to the proper "unint??_t"

Specifically, reference lines 308-312 of eeprom.h


Ken Krieger <kenk>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by arcanum (Posted a comment)
  • -email is unavailable- added by wutje (Posted a comment)
  • -email is unavailable- added by kenk (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-11-20 arcanum StatusNone Wont Fix
        Assigned toNone arcanum
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code