Re: [PATCH] pedantic code cleanup - am I wasting my time with this?

From: Rusty Russell (rusty@rustcorp.com.au)
Date: Mon Apr 23 2001 - 23:59:15 EST


In message <3AE449A3.3050601@eisenstein.dk> you write:
> return (waitall ? len : min(sk->rcvlowat, len)) ? : 1;
>
> To be strictly correct the second expression (between '?' and ':' )
> should not be omitted (all you guys already know that ofcourse).

It's a GCC extension. From Documentation/DocBook/kernel-hacking.tmpl:

    GNU Extensions are explicitly allowed in the Linux kernel.

Rusty.

--
Premature optmztion is rt of all evl. --DK
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:10 EST