Boost logo

Geometry :

Subject: [ggl] Warnings
From: Mateusz Loskot (mateusz)
Date: 2009-06-19 12:34:35


Chris Browet wrote:
> I noticed GCC gives more warnings than MSVC,

Chris,

I noticed that some/many projects in GGL have warning level set down to
level W1, so ensure you compile with level W3. I personally prefer to
compile all my code as level W4 plus (very important)
language extensions disabled
(http://msdn.microsoft.com/en-us/library/0k0w269d.aspx)

I think it's reasonable for library like GGL, which is not
specific to Win32.

> And different versions of GCC gives different warnings... :-(

What versions you exactly mean?

> There are also warnings in the projections re "proj_parm" in the "setup"
> of the projections. Often, it is not used. e.g.
>
> template <typename Parameters>
> void setup(Parameters& par, par_putp4p& proj_parm)
> {

The generator program should put this here:

boost::ignore_unused_variable_warning(proj_param);

> par.es <http://par.es> = 0.;
> // par.inv = s_inverse;
> // par.fwd = s_forward;
> }

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net

Geometry list run by mateusz at loskot.net