[petsc-dev] plex error in next

Barry Smith bsmith at mcs.anl.gov
Thu Mar 13 22:26:42 CDT 2014


/Users/barrysmith/Src/PETSc/src/dm/impls/plex/plexfem.c:1203:41: warning: variable 'cpdim' is uninitialized when used here [-Wuninitialized]
      if (fieldI != fieldJ) {offsetJ += cpdim; continue;}
                                        ^~~~~
/Users/barrysmith/Src/PETSc/src/dm/impls/plex/plexfem.c:1200:28: note: initialize the variable 'cpdim' to silence this warning
      PetscInt   NcJ, cpdim, j;
                           ^
                            = 0





More information about the petsc-dev mailing list