From: Martin Wilck Subject: Re: [PATCH V4 11/14] mpathpersist: check whether malloc paramp->trnptid_list fails in handle_args func Date: Fri, 11 Sep 2020 08:29:15 +0200 Message-ID: References: <3f34cd14-17a0-f7a4-6cdb-7a37aa5c31b4@huawei.com> <8ecf7f972b83be7fba3797327046c7cedf1179c8.camel@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: lixiaokeng , Christophe Varoqui , Benjamin Marzinski , dm-devel mailing list Cc: linfeilong , "liuzhiqiang (I)" List-Id: dm-devel.ids 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