|
From: | Douglas Dotson |
Subject: | Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing |
Date: | Mon, 20 Dec 2004 07:26:36 -0800 (PST) |
I agree that one should not tolerate any warning messages. Folks tend to ignore them and on the occasion that the warning is actually indicating a real problem, it might be ignored. > while ((SPSR & (1 << SPIF)) = 0) > ; > would be an error that some compilers say nothing > about. I think any compiler would generate on this because the assignment is trying to assign a constant to an RVALUE isn't it? > The compiler will always barf if the constant is on > the left because > you can not assign a value to a constant. > > > -- > > http://www.softwaresafety.net/ > http://www.unusualresearch.com/ > http://www.bpaddock.com/ > > > _______________________________________________ > avr-gcc-list mailing list > address@hidden > http://www.avr1.org/mailman/listinfo/avr-gcc-list >
[Prev in Thread] | Current Thread | [Next in Thread] |