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

Rusty Russell (rusty@rustcorp.com.au)
Tue, 24 Apr 2001 14:59:15 +1000


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/