I'm doing a C project in Atmel Studio 7. The target is the ATmega169. I'm using the eeprom to store a few critical items. So far, my code seems to run OK, but I always get the following warning on every line where I access the eeprom:
"cast to pointer from integer of different size[-Wint-to-pointer-cast]"
Example code snippet:
uint8_t channelCount; // eeprom address
for (channelCount = 0;channelCount < 7;channelCount++)
eData = eeprom_read_byte((uint8_t*)channelCount); This line gets a warning.
As far as I can determine, I'm using the AVRGCC eeprom functions correctly, so why the warning?