[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Problem with avr gcc compiler ? No warning of mixedda
From: |
Weddington, Eric |
Subject: |
RE: [avr-gcc-list] Problem with avr gcc compiler ? No warning of mixeddata types |
Date: |
Sun, 19 Apr 2009 09:34:59 -0600 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Dan Roganti
> Sent: Sunday, April 19, 2009 9:26 AM
> To: address@hidden
> 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] Problem with avr gcc compiler ? No warning of mixed data types, Dan Roganti, 2009/04/19
- RE: [avr-gcc-list] Problem with avr gcc compiler ? No warning of mixeddata types,
Weddington, Eric <=
- Message not available
- Message not available
- Re: [avr-gcc-list] Problem with avr gcc compiler ? No warning of mixeddata types, Dan Roganti, 2009/04/19
- RE: [avr-gcc-list] Problem with avr gcc compiler ? No warning ofmixeddata types, Weddington, Eric, 2009/04/19
- Re: [avr-gcc-list] Problem with avr gcc compiler ? No warning ofmixeddata types, Dan Roganti, 2009/04/19
- RE: [avr-gcc-list] Problem with avr gcc compiler ? No warningofmixeddata types, Weddington, Eric, 2009/04/19
- Re: [avr-gcc-list] Problem with avr gcc compiler ? No warningofmixeddata types, Dan Roganti, 2009/04/19
- [avr-gcc-list] Re: Problem with avr gcc compiler ? No warningofmixeddata types, David Brown, 2009/04/19
[avr-gcc-list] Re: Problem with avr gcc compiler ? No warning of mixeddata types, David Brown, 2009/04/19