URL:
<http://savannah.nongnu.org/bugs/?19055>
Summary: Error with function eeprom_write_word
Project: AVR C Runtime Library
Submitted by: beaver_cavern
Submitted on: Tuesday 02/13/2007 at 23:58
Category: Library
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Originator Email: [EMAIL PROTECTED]
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hi,
I have the following environment:
AVR Studio 4.13 beta, with latest version of avr-libc and latest version of
avr-gcc.
I have the following code:
Code:
const uint16_t EEMEM EE_EQID;
...
eeprom_write_word(&EE_EQID,(uint16_t)usRegBuf[MB_EQID]);
End Code
that generate the following compiler warning.
Quote:
../MicroTransTempReg.c:153: warning: passing argument 1 of
'eeprom_write_word' discards qualifiers from pointer target type
End quote
I removed the "const" declaration and this removed the warning message.
However, Jörg suggested to file a a bug report.
Best regards
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?19055>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev