| fef1ebd0 | 30-Sep-2024 |
Pierre Jolivet <pierre@joliv.et> |
Fix -Wshorten-64-to-32
src/vec/is/utils/hdf5/hdf5io.c:120:46: warning: implicit conversion loses integer precision: 'PetscInt' (aka 'long long') to 'int' [-Wshorten-64-to-32] 120 | PetscCallMP
Fix -Wshorten-64-to-32
src/vec/is/utils/hdf5/hdf5io.c:120:46: warning: implicit conversion loses integer precision: 'PetscInt' (aka 'long long') to 'int' [-Wshorten-64-to-32] 120 | PetscCallMPI(MPI_Allgatherv(lcind, cmap->n, MPIU_INT, ctx->cind, counts, displs, MPIU_INT, comm)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/petsclog.h:541:123: note: expanded from macro 'MPI_Allgatherv' 541 | (PetscAddLogDouble(&petsc_gather_ct, &petsc_gather_ct_th, PetscMPIParallelComm(comm)) || MPI_Allgatherv((sendbuf), (sendcount), (sendtype), (recvbuf), (recvcount), (displs), (recvtype), (comm))) | ~~~~~~~~~~~~~~ ^~~~~~~~~ include/petscerror.h:784:102: note: expanded from macro 'PetscCallMPI' 784 | #define PetscCallMPI(...) PetscCallMPI_Private(PetscStackPop, SETERRQ, PETSC_COMM_SELF, __VA_ARGS__) | ^~~~~~~~~~~ include/petscerror.h:774:32: note: expanded from macro 'PetscCallMPI_Private' 774 | ierr_petsc_call_mpi_ = __VA_ARGS__; \ | ^~~~~~~~~~~
show more ...
|