[CRIU] [PATCH 1/2] check return code of asprintf

Pavel Emelyanov xemul at parallels.com
Wed Apr 22 02:35:41 PDT 2015


On 04/21/2015 07:33 PM, Tycho Andersen wrote:
> On ubuntu (gcc 4.9.2), I get:
> 
> mount.c: In function ‘add_fsname_auto’:
> mount.c:1414:3: error: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Werror=unused-result]
>    asprintf(&fsauto_names, "%s,%s", old, names);
>    ^
> cc1: all warnings being treated as errors
> 
> Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>

Both applied, thanks!



More information about the CRIU mailing list