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

Roland Dreier rolandd at cisco.com
Thu Sep 1 10:32:53 PDT 2005


    > Not sure yet on what gcc 2.95 doesn't like about:
    > #define WARN(fmt, arg ...)      printk("ib_at: %s: " fmt "\n", __FUNCTION__,  ## arg);
    > but that is the cause of the other compile issue in at.c.

Probably it doesn't like the extra space in WARN(fmt, arg ...).
Hmm... changing it to

#define WARN(fmt, arg...)	printk("ib_at: %s: " fmt "\n", __FUNCTION__, ## arg);

fixes the original complaint, but then gcc 2.95 doesn't like things like:

			WARN("pending request not found in parent request!");

ie WARN() with no arg parameter.  Not sure how to make gcc 2.95 happy
about that...

 - R.



More information about the general mailing list