Login  Register

Re: disabling compilation warnings

Posted by Luigi Ballabio on May 25, 2007; 4:53pm
URL: http://quantlib.414.s1.nabble.com/disabling-compilation-warnings-tp9510p9513.html

On Fri, 2007-05-25 at 17:43 +0200, DU VIGNAUD DE VILLEFORT FRANCOIS
GASAPRD PHI wrote:
> Ok thks, what about the #4180 ?

It could be dealt with in the same way. What is the warning about?

Later,
        Luigi

P.S. About your suggestion of a macro such as:

#define QL_SAFE_BOOST_FUNCTION_INCLUDE \
#pragma warning (disable: 4224) \
etc.

I am not sure how the preprocessor works. If a pragma is inside a macro
definition, does it get executed when the preprocessor reads it (i.e.,
when the macro is defined, which doesn't make us any good) or when the
macro is expanded?


> -----Original Message-----
> From: Luigi Ballabio [mailto:[hidden email]]
> Sent: Friday, May 25, 2007 3:47 PM
> To: DU VIGNAUD DE VILLEFORT FRANCOIS GASAPRD PHI
> Cc: [hidden email]
> Subject: Re: [Quantlib-dev] disabling compilation warnings
>
> On Fri, 2007-05-25 at 12:56 +0200, DU VIGNAUD DE VILLEFORT FRANCOIS
> GASAPRD PHI wrote:
> > I have just disabled the compilation warning #4224 for VC2005 by
> > adding the corresponding preprocessor command in ql/config.msvc.hpp.
> > I'm wondering if disabling uncommon compilation warning at a more
> > local level would'nt be more appropriated.
>
> True--in fact, I did it locally in the 0.8.0 branch. It will appear in
> the trunk when we merge it.
>
> Later,
> Luigi
>
>
> ----------------------------------------
>
> Dealing with failure is easy: work hard to improve. Success is also
> easy to handle: you've solved the wrong problem. Work hard to improve.
> -- Alan Perlis
>
>

----------------------------------------

Testing can never demonstrate the absence of errors in software, only
their presence.
-- W.E. Dijkstra



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev