From 875e7f12289274171984a27c231116e5737e7bf9 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 2 Sep 2014 14:01:18 +0200 Subject: [PATCH] Avoid tautological-compare Clang complains about tautological compare: it seems an unsigned integer is always non-negative. --- src/smpi/smpi_mpi_dt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index 4cd5f6454e..07bec7c55e 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -150,8 +150,7 @@ CREATE_MPI_DATATYPE(MPI_PTR, void*); */ int is_datatype_valid(MPI_Datatype datatype) { return datatype != MPI_DATATYPE_NULL - && (datatype->flags & DT_FLAG_COMMITED) - && (smpi_datatype_size(datatype)>=0); + && (datatype->flags & DT_FLAG_COMMITED); } size_t smpi_datatype_size(MPI_Datatype datatype) -- 2.20.1