On Mon, Aug 29, 2011 at 3:15 PM, Wim Lewis <w...@hhhh.org> wrote:
> On Mon, 29 Aug 2011, Weddington, Eric wrote:
>>
>> For the preprocessor purposes, I would bet that somehow "last" evaluates
>> to 0, so of course the condition will always be true.

>   "[6] Identifiers that are not macros, which are all considered to be
>        the number zero. [....]"

Adding -Wundef to avr-gcc test.c now gets the same error.
I already had that in my project Makefile along with all the other warnings.

So that explains the difference.  Seems like there could be a better
error message for this case, 'don't use enum here', alas "The
preprocessor does not know anything about types in the language"...

Thank you.

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

Reply via email to