Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH] lib/mpi/mpicoder.c: looping issue, need stop when equal to zero, found by 'EXTRA_FLAGS=-W'. | Date | Mon, 20 May 2013 11:13:17 +0100 |
| |
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>
| |