unreferenced formal parameters in callable bond

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

unreferenced formal parameters in callable bond

Ferdinando M. Ametrano-3
Hi all

as you probably guessed I'm doing some lint activity for 1.0 release,
so expect some more "unreferenced formal parameters" 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 C4100: 'redemption' : unreferenced formal
parameter c:\Projects\QuantLib\trunk\QuantLib\ql\experimental\callablebonds\callablebond.cpp 32
warning C4100: 'paymentConvention' : unreferenced formal
parameter c:\Projects\QuantLib\trunk\QuantLib\ql\experimental\callablebonds\callablebond.cpp 31
warning C4100: 'faceAmount' : unreferenced formal
parameter c:\Projects\QuantLib\trunk\QuantLib\ql\experimental\callablebonds\callablebond.cpp 28

For unreferenced formal parameter there are 3 possible alternatives:

1) keep the parameter, just remove its name. This might be the case if
you're inheriting the signature, but the parameter doesn't make sense
in your implementation
2) use the parameter. Not using it was a genuine bug
3) remove the parameter as it is not needed

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