Skip to content
  • Jose E. Roman's avatar
    ea17275a
    Fix compiler warnings from NVIDIA nvc 24.7 · ea17275a
    Jose E. Roman authored
    "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));
            ^
    ea17275a
    Fix compiler warnings from NVIDIA nvc 24.7
    Jose E. Roman authored
    "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));
            ^
Loading