why do I have warning?

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

this is the code:
delta_h = eeprom_read_word ( &channel[SHT_H_CHANNEL].tmo );//no warning
if (inp ...
}
types definitions
typedef struct {
int tmo;
int max;
int min;
} channel_s;

int inp;
extern channel_s channel [LAST_CHANNEL_NUM]; // eeprom

this is warning: passing arg 1 of `eeprom_read_word' from incompatible pointer type

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I still do and wondering why.
may be options?
C:\WinAVR\bin\avr-gcc.exe -g -O2 -mmcu=atmega128 -c -pipe -Wall -Wa,-ahlms=alarm.lst -fforce-mem -fforce-addr -funsigned-char -funsigned-bitfields -fshort-enums -I..\inc -I..\inc -L..\lib alarm.c
But anyhow what is the difference between those two lines?