|
From: | Dave Hansen |
Subject: | Re: [avr-gcc-list] Feature request - compiler warning for "if" stmtsthat do nothing |
Date: | Tue, 14 Dec 2004 09:11:15 -0500 |
From: address@hidden [...]
And also good style; I hate it when I see an empty loop done as while (*a++ = *b++); It makes it so much more obvious you meant it to be empty when you instead do while (*a++ = *b++) ; Or even better while (*a++ = *b++) ; /* empty */
My preference is something like while (*dst++ = *src++) continue; Regards, -=Dave
[Prev in Thread] | Current Thread | [Next in Thread] |