Re: warning: ISO C99 requires rest arguments to be used
Brandon Long <[email protected]>
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20070731211347.GF26757@bl1> |
Makes sense.
Brandon
On 07/27/07 raphael.huck uttered the following other thing:
> With this #define:
>
> #define nerr_raise(e,f,a...) \
> nerr_raisef(__PRETTY_FUNCTION__,__FILE__,__LINE__,e,f,a)
>
> this will generate a warning:
>
> nerr_raise (NERR_NOMEM, "No memory for new row");
>
> whereas this won't:
>
> nerr_raise (NERR_NOT_FOUND, "Unable to find key %s", key);
>
> To remove this warning, replace the previous #define with:
>
> #define nerr_raise(e,a...) \
> nerr_raisef(__PRETTY_FUNCTION__,__FILE__,__LINE__,e,a)
>
>
> --Raphaël HUCK
>
>
>
>
> Yahoo! Groups Links
>
>
>
--
"Being intelligent is not a felony. But most societies evaluate it as
being at least a misdemeanor." -- Robert A. Heinlein
http://www.fiction.net/blong/