warning: ISO C99 requires rest arguments to be used
"raphael.huck" <[email protected]>
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <[email protected]> |
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