[dm-devel] [PATCH V4 11/14] mpathpersist: check whether malloc paramp->trnptid_list fails in handle_args func

Martin Wilck mwilck at suse.com
Fri Sep 11 06:29:15 UTC 2020


Hi Lixiaokeng,

On Fri, 2020-09-11 at 09:34 +0800, lixiaokeng wrote:
> 
> Hi Martin,
>   When I compile it, I add a patch thats changes int to unsigned int.
> But I don't think it is an error. It is  just a warning and becomes
> an
> error with [-Werror]. Anyway,

What do you think, why did we add -Werror?

Disabling the warning options when working on the code is strongly
discouraged.

> > I will change int to unsigned it and send
> it again. Thanks.

Thank you.

Martin





More information about the dm-devel mailing list