| ea17275a | 05-Oct-2024 |
Jose E. Roman <jroman@dsic.upv.es> |
Fix compiler warnings from NVIDIA nvc 24.7
"src/vec/is/section/interface/section.c", line 1268: warning: pointless comparison of unsigned integer with zero [unsigned_compare_with_zero] PetscCa
Fix compiler warnings from NVIDIA nvc 24.7
"src/vec/is/section/interface/section.c", line 1268: warning: pointless comparison of unsigned integer with zero [unsigned_compare_with_zero] PetscCall(PetscMalloc1(last >= 0 ? s->bc->atlasOff[last] + s->bc->atlasDof[last] : 0, &s->bcIndices)); ^
"src/mat/impls/aij/mpi/mumps/mumps.c", line 2101: warning: loop is not reachable [loop_not_reachable] PetscCheck(!schur, PETSC_COMM_SELF, PETSC_ERR_SUP, "Cannot use -%smat_mumps_use_omp_threads with the Schur complement feature", ((PetscObject)F)->prefix ? ((PetscObject)F)->prefix : ""); ^
"src/dm/impls/swarm/swarm.c", line 217: warning: variable "flg" was set but never used [set_but_not_used] PetscBool flg; ^
"src/ts/utils/dmplexlandau/plexland.c", line 1848: warning: loop is not reachable [loop_not_reachable] PetscCall(PetscFree4(ww, xx, yy, invJ_a)); ^
show more ...
|
| 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 ...
|