[openib-general] Re: at won't compile with gcc-2.95

Hal Rosenstock halr at voltaire.com
Thu Sep 1 12:06:06 PDT 2005


Hi James,

On Thu, 2005-09-01 at 14:06, James Lentini wrote:
> I think you want
> 
> #define WARN(fmt, ...) \
> 	printk("ib_at: %s: " fmt "\n", __FUNCTION__, __VA_ARGS__)
> 
> (note that I've removed the ";") but I don't have gcc 2.95 to test it.

Did this work for you ? I get:
drivers/infiniband/core/at_priv.h:140:78: warning: __VA_ARGS__ can only
appear in the expansion of a C99 variadic macro
followed by other errors as a result of this.

-- Hal




More information about the general mailing list