Messages in this thread | | | Date | Mon, 28 Jun 1999 08:49:29 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: do {} while(0) |
| |
On Mon, 28 Jun 1999, wu_yb wrote:
> There are many > do {} while(0) > do { ... } while(0) > in kernel source. > Any difference between {} and do {} while(0); or > { ... } and do {...} while(0). Are there any > special effect ? >
It's just a trick to keep the compiler from issuing warnings about "empty statements".
Cheers, Dick Johnson ***** FILE SYSTEM WAS MODIFIED ***** Penguin : Linux version 2.2.6 on an i686 machine (400.59 BogoMips). Warning : It's hard to remain at the trailing edge of technology.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |