i am programming ATmega128 using avr studio 4. When I display floating point values, I get warning message which says
Lines causing warning message to appear are as follows :
float temperature;
//{other parts}
fprintf(stderr,"Temp: %0.2f ", temperature);
warning message is:
../main.c:128:2: warning: format '%f' expects argument of type 'double', but argument 4 has type 'float' [-Wformat]"
When displaying it in double, I see other random values..How can I get rid of this warning message ?