Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64889 - trunk/boost/math/special_functions
From: pbristow_at_[hidden]
Date: 2010-08-18 11:52:16


Author: pbristow
Date: 2010-08-18 11:52:13 EDT (Wed, 18 Aug 2010)
New Revision: 64889
URL: http://svn.boost.org/trac/boost/changeset/64889

Log:
 T result = 0; // Just to avoid warning C4701: potentially uninitialized local variable 'result' used
Text files modified:
   trunk/boost/math/special_functions/gamma.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/math/special_functions/gamma.hpp
==============================================================================
--- trunk/boost/math/special_functions/gamma.hpp (original)
+++ trunk/boost/math/special_functions/gamma.hpp 2010-08-18 11:52:13 EDT (Wed, 18 Aug 2010)
@@ -835,7 +835,7 @@
 
    typedef typename lanczos::lanczos<T, Policy>::type lanczos_type;
 
- T result;
+ T result = 0; // Just to avoid warning C4701: potentially uninitialized local variable 'result' used
 
    BOOST_ASSERT((p_derivative == 0) || (normalised == true));
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk