Re: [idea] request_module(const char *fmt, ...);

From: James Manning (jmm@raleigh.ibm.com)
Date: Fri Jan 14 2000 - 16:17:31 EST


[ Friday, January 14, 2000 ] willy tarreau wrote:
> if you define an empty macro for request_module, this
> line :
>
> request_module("blah","blah2","foobar");
>
> will be converted to :
>
> ("blah","blah2","foobar");
>
> which is treated by the compiler as useless code and
> will no even generate one byte of code.
>
> I think this is perfectly usable, any comments ?

We *hate* compiler warnings

warning: left-hand operand of comma expression has no effect
(use -Wall on your compiles :)

James

-- 
Miscellaneous Engineer --- IBM Netfinity Performance Development

- 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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:25 EST