[petsc-dev] PETSc blame digest (next) 2015-04-08

Matthew Knepley knepley at gmail.com
Wed Apr 8 10:08:24 CDT 2015


On Wed, Apr 8, 2015 at 9:43 AM, Jed Brown <jed at jedbrown.org> wrote:

> Matthew Knepley <knepley at gmail.com> writes:
> > I think you need an if () to make the compiler quit whining.
>
> if what?  if (1)?  Seems pointless.
>

if (!link) SETERRQ();

The compiler will not be able to reason about that and the cannot know that
the return is not reached.

  Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150408/89c7a7f4/attachment.html>


More information about the petsc-dev mailing list