Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-12-01 09:42:04


on Sat Dec 01 2007, Juergen Hunold <juergen.hunold-AT-ivembh.de> wrote:

> I'm experimenting with the Boost.Python bindings and get the warning:
>
> boost/python/detail/unwind_type.hpp:152: warning: unused parameter 'p'
>
> when building my extension library with gcc. Full output "errort.txt"
> attached.
> My gcc is:
> gcc -v
> gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
>
> The attached patch "unwind_type.hpp.diff" fixes the problem for the "not
> msvc" case. All Boost.Python tests pass.
>
> Question: Ok to commit ?

Please do.

> The interesting thing is that this warning is not produced by _any_ of
> the existing test case.

Well, that's pretty interesting. It would be better if your patch
would also introduce *something* in one of the tests that triggers the
warning, if not a whole new test unto itself.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk