[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Add missing return value checks

On Mon, Aug 12, 2013 at 09:24:59AM +0100, Jan Beulich wrote:
> >>> On 11.08.13 at 22:10, Bastian Blank <bastian@xxxxxxxxxxxx> wrote:
> > The return value of vasprintf must be checked. This check is enforced
> > with the compiler options used in Debian by request and in Ubuntu by
> > default.
> The function is not declared with __attribute__((warn_unused_result)),

Depending on the compiler setup it is and has been this way since a long time:

| #define __attribute_warn_unused_result__ __attribute__ 
| # define __wur __attribute_warn_unused_result__
| #endif
| extern int vasprintf (char **__restrict __ptr, const char *__restrict __f,
|                       _G_va_list __arg)
|      __THROWNL __attribute__ ((__format__ (__printf__, 2, 0))) __wur;


There's another way to survive.  Mutual trust -- and help.
                -- Kirk, "Day of the Dove", stardate unknown

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.