logo       

[osol-discuss] warning with variadic macro: msg#00819

opensolaris-discuss

Subject: [osol-discuss] warning with variadic macro

Hey,

i am contributing to a project (the Enlightenment windows manager) and we use
variadic macros. More precisely, this one:

# define EINA_ARG_NONNULL(idx, ...) __attribute__ ((nonnull(idx, ##
__VA_ARGS__)))

and we use it like that (for example):

EAPI void eina_rectangle_pool_free(Eina_Rectangle_Pool *pool)
EINA_ARG_NONNULL(1);

On Linux, no problem, but on opensolaris, a guy reported the warning using
SunStudio12 :

"warning: argument mismatch"

I'm not very familiar with variadic macro, and even if google found some pages
about that (like
http://mail.opensolaris.org/pipermail/opensolaris-code/2008-September/006029.html
), i didn't find the solution.

So, is there a flag to pass to the SunStudio12 preprocessor and/or modifying
the above macro ?

thank you

Vincent Torri
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise