[ofa-general] [PATCH V2 1/3] Create a new library libibnetdisc

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Mon Dec 29 23:34:12 PST 2008


On Tue, Dec 23, 2008 at 04:41:41PM -0800, Ira Weiny wrote:

> Otherwise calls to the macro with only 1 parameter fail to compile.  It seems
> that GCC has a couple of extensions [*] but the above should be C99 compliant
> without GCC extensions.  Does that seem right?

Right, that is the unfortunate oversight of the C99 committee. I
think the gcc extension in the C99 case is pretty common.. msdn says
that VC++ will supress the comma if the argument is omitted, which I
suspect is compatible with the GCC extension behavior.

http://msdn.microsoft.com/en-us/library/ms177415(VS.80).aspx

Jason



More information about the general mailing list