[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Feature request - compiler warning for "if" stmts tha
From: |
Dave Hylands |
Subject: |
RE: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing |
Date: |
Mon, 20 Dec 2004 07:07:21 -0800 |
> The compiler will always barf if the constant is on the left because
> you can not assign a value to a constant.
I always found that little tidbit (putting the constant on the left) to
be amusing.
I figure if I can remember to put the constant on the left (which isn't
natural for me), then I can remember to use '==' when I'm supposed to.
Perhaps it's because I already knew C the first time I heard about that
little practice, and you know what they say about old habits dying hard.
--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/
- Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing, (continued)
RE: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing, Douglas Dotson, 2004/12/13
- Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing, rusty+avr-gcc-list, 2004/12/13
- Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing, Douglas Dotson, 2004/12/13
- Re: [avr-gcc-list] Feature request - compiler warning for "if" stmtsthat do nothing, Dave Hansen, 2004/12/14
- Re: [avr-gcc-list] Feature request - compiler warning for "if" stmtsthat do nothing, Douglas Dotson, 2004/12/14
- Re: [avr-gcc-list] Feature request - compiler warning for "if"stmtsthat do nothing, Graham Davies, 2004/12/14
- Re: [avr-gcc-list] Feature request - compiler warning for "if" stmtsthat do nothing, Dave Hansen, 2004/12/14
RE: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing,
Dave Hylands <=