lkml.org 
[lkml]   [2013]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] lib/mpi/mpicoder.c: looping issue, need stop when equal to zero, found by 'EXTRA_FLAGS=-W'.
On 05/20/2013 06:13 PM, David Howells wrote:
> Chen Gang <gang.chen@asianux.com> wrote:
>
>> > For 'while' looping, need stop when 'nbytes == 0', or will cause issue.
>> > ('nbytes' is size_t which is always bigger or equal than zero).
>> >
>> > The related warning: (with EXTRA_CFLAGS=-W)
>> > lib/mpi/mpicoder.c:40:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
> Acked-by: David Howells <dhowells@redhat.com>
>
>

Thank you very much.


Thanks.
--
Chen Gang

Asianux Corporation


\
 
 \ /
  Last update: 2013-05-20 13:21    [W:0.149 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site