<div dir="ltr">This warning went away. i don't know why.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 11, 2021 at 2:10 PM Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I get this error in CI with complex float: <a href="https://gitlab.com/petsc/petsc/-/jobs/1170144554" target="_blank">https://gitlab.com/petsc/petsc/-/jobs/1170144554</a><div><br></div><div>I put in code earlier to fix this warning about uninitialized vars, but now it does not seem to work:</div><div><br></div><div><div style="box-sizing:border-box;padding:1px 8px 1px 55px;min-height:1.25rem;color:rgb(255,255,255);font-family:Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;background-color:rgb(17,17,17)"><span style="box-sizing:border-box;white-space:pre-wrap">/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]</span></div><div style="box-sizing:border-box;padding:1px 8px 1px 55px;min-height:1.25rem;color:rgb(255,255,255);font-family:Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;background-color:rgb(17,17,17)"><a id="gmail-m_3845899711849125282gmail-L2251" href="https://gitlab.com/petsc/petsc/-/jobs/1170144554#L2251" style="box-sizing:border-box;color:rgb(102,102,102);text-decoration-line:none;background-color:transparent;font-size:0.875rem;padding:0px 1em 0px 8px;min-width:50px;display:inline-block;text-align:right" target="_blank">2251</a><span style="box-sizing:border-box;white-space:pre-wrap"> PetscScalar vals[LANDAU_MAX_Q_FACE*LANDAU_MAX_Q_FACE],row_scale[LANDAU_MAX_Q_FACE],col_scale[LANDAU_MAX_Q_FACE];</span></div></div><br>Yet I have code to initialize col_scale:<div><br></div><div> for (q = 0; q < LANDAU_MAX_Q_FACE; q++) col_scale[q] = 0.0; // suppress warnings<br></div><div><br></div><div>I get a similar error with an integer array. </div><div><br></div><div>Any suggestions?</div></div>
</blockquote></div>