This job gets run on either pj01 or pj02 - each have slightly different version of gcc. (and they behave differently wrt certain warnings) [trade-off with diversity in testing and having redundancy in available work machines - so jobs are not stuck on a single box] I guess I should somehow fix this (perhaps switch them all to same OS/versions]. Satish On Sun, 11 Apr 2021, Mark Adams wrote:
This warning went away. i don't know why.
On Sun, Apr 11, 2021 at 2:10 PM Mark Adams <[email protected]> wrote:
I get this error in CI with complex float: https://gitlab.com/petsc/petsc/-/jobs/1170144554
I put in code earlier to fix this warning about uninitialized vars, but now it does not seem to work:
/home/glci/builds-stage1/AbTGp5-t/0/petsc/petsc/src/ts/utils/dmplexlandau/plexland.c:414:94: error: ‘col_scale[4]’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 2251 <https://gitlab.com/petsc/petsc/-/jobs/1170144554#L2251> PetscScalar vals[LANDAU_MAX_Q_FACE*LANDAU_MAX_Q_FACE],row_scale[LANDAU_MAX_Q_FACE],col_scale[LANDAU_MAX_Q_FACE];
Yet I have code to initialize col_scale:
for (q = 0; q < LANDAU_MAX_Q_FACE; q++) col_scale[q] = 0.0; // suppress warnings
I get a similar error with an integer array.
Any suggestions?
participants (1)
-
Satish Balay