# HG changeset patch # User mas01cr # Date 1215075057 0 # Node ID 0e44de38d6752b5e609014d97cf7e32fa5c9a259 # Parent f6b80b9f6afeaf7e32eaed63c51646dd0459a9ef Trivial fix for some compilers trying to be smart and noting a path whereby something uninitialized might be returned in yinv(). diff -r f6b80b9f6afe -r 0e44de38d675 sample.cpp --- a/sample.cpp Wed Jul 02 17:14:10 2008 +0000 +++ b/sample.cpp Thu Jul 03 08:50:57 2008 +0000 @@ -16,7 +16,8 @@ double ay = yfun(a); double by = yfun(b); - double c, cy; + double c = 0; + double cy; /* FIXME: simple binary search; there's probably some clever solver in gsl somewhere which is less sucky. */