[petsc-dev] variable 'length' is uninitialized in src/sys/fileio/mprint.c
Vaclav Hapla
vaclav.hapla at erdw.ethz.ch
Thu May 3 10:19:59 CDT 2018
Barry,
this is obviously wrong in current master:
14416c0e507 src/sys/fileio/mprint.c 791) size_t length;
cb500232d0b src/sys/fileio/mprint.c 792) char buff[length];
It results in
warning: variable 'length' is uninitialized when used here [-Wuninitialized]
when the PETSC_HAVE_MATLAB_ENGINE macro is defined.
Vaclav
More information about the petsc-dev
mailing list