<div class="gmail_quote">On Wed, Nov 3, 2010 at 12:50, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Because of the || *r2 may never get set, but it gets used later in the routine. Maybe compilers shouldn't give the warning but some did.</blockquote></div><br><div>But the uninitialized value can't be used if PetscMallocX failed because the error is checked and the error handler is invoked. Was the problem only in some case where the error code was not being checked, or was it more than that? Spurious uninitialized warnings are obnoxious, are they worth pandering to? I can't reproduce them with any of my compilers.</div>
<div><br></div><div>Jed</div>