[petsc-dev] variable 'length' is uninitialized in src/sys/fileio/mprint.c

Smith, Barry F. bsmith at mcs.anl.gov
Thu May 3 13:33:40 CDT 2018

   Thanks. I have removed the function in commit 08486c302b2  since it is dead, unneeded code that I should have removed before.


> On May 3, 2018, at 10:19 AM, Vaclav Hapla <vaclav.hapla at erdw.ethz.ch> wrote:
> 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