potentially uninitialized local variables in Analytic GJR-GARCH(1, 1) Engine

Posted by Ferdinando M. Ametrano-3 on
URL: http://quantlib.414.s1.nabble.com/potentially-uninitialized-local-variables-in-Analytic-GJR-GARCH-1-1-Engine-tp12134.html

Hi all

as you probably guessed I'm doing some lint activity for 1.0 release,
so expect some more annoying message from me.

Feel free to trash all of them ;-) but if you are the author or you
have some familiarity with the code referenced please consider helping

warning C4701: potentially uninitialized local variable 'ex'
used c:\projects\quantlib\trunk\quantlib\ql\pricingengines\vanilla\analyticgjrgarchengine.cpp 268
warning C4701: potentially uninitialized local variable 'k3'
used c:\projects\quantlib\trunk\quantlib\ql\pricingengines\vanilla\analyticgjrgarchengine.cpp 279
warning C4701: potentially uninitialized local variable 'k4'
used c:\projects\quantlib\trunk\quantlib\ql\pricingengines\vanilla\analyticgjrgarchengine.cpp 279
warning C4701: potentially uninitialized local variable 'sigma'
used c:\projects\quantlib\trunk\quantlib\ql\pricingengines\vanilla\analyticgjrgarchengine.cpp 267

using potentially uninitialized local variables smells like a genuine bug to me

ciao -- Nando

RSS feed: http://www.google.com/reader/shared/ferdinando.ametrano

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev