> -----Original Message-----
> From: 
> avr-gcc-list-bounces+eric.weddington=atmel....@nongnu.org 
> [mailto:avr-gcc-list-bounces+eric.weddington=atmel....@nongnu.
> org] On Behalf Of Dan Roganti
> Sent: Sunday, April 19, 2009 9:26 AM
> To: avr-gcc-list@nongnu.org
> Subject: [avr-gcc-list] Problem with avr gcc compiler ? No 
> warning of mixeddata types
> 
> 
> Eventually, we noticed a problem with the data types getting 
> mixed, the adc value is stored in a uint16_t variable and the 
> array which holds all the readings was a uint8_t variable. 
> This obviously mashed all the readings into something 
> unreliable. This is something we should have noticed, but 
> _also _ something that the *compiler* should have noticed !   

It could be that you do not have such warnings enabled. You didn't post what 
compiler settings you were using...

> I mean the compiler gives some of the most stupid warnings, 
> such as , when a function that is declared but not used (who 
> cares - I know that already since I'm coding this) 

That is not a stupid warning, because why should you include code in your 
application that you are not using? This wastes code space, and many people 
want to get rid of it.



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to