[petsc-dev] plex crap in the repository

Barry Smith bsmith at mcs.anl.gov
Mon Feb 23 11:39:38 CST 2015


/Users/barrysmith/Src/PETSc/arch-debug/bin/mpicc -o ex3.o -c -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0   -I/Users/barrysmith/Src/PETSc/include -I/Users/barrysmith/Src/PETSc/arch-debug/include -I/opt/X11/include    `pwd`/ex3.c
/Users/barrysmith/Src/petsc/src/dm/impls/plex/examples/tests/ex3.c:363:111: warning: variable 'aDof' is uninitialized when used here [-Wuninitialized]
          if (cDof != 1) SETERRQ1(PETSC_COMM_SELF,PETSC_ERR_PLIB,"Found %d anchor points: should be just one",aDof);
                                                                                                              ^~~~

What kind of terrible compiler are you using that doesn't flag this stuff?




More information about the petsc-dev mailing list