Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3603: Fix warnings when compiling test cases
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-10 13:56:30
#3603: Fix warnings when compiling test cases
-------------------------------------------+--------------------------------
Reporter: s.ochsenknecht@⦠| Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: program_options
Version: Boost 1.40.0 | Severity: Cosmetic
Keywords: |
-------------------------------------------+--------------------------------
Changes (by anonymous):
* type: Patches => Bugs
Comment:
I got some other warnings when compiling options_description_test.cpp:
{{{
../../../boost/any.hpp: In member function âvoid
boost::program_options::typed_value<T, charT>::notify(const boost::any&)
const [with T = double, charT = char]â:
options_description_test.cpp:182: instantiated from here
../../../boost/any.hpp:216: warning: type qualifiers ignored on function
return type
../../../boost/any.hpp: In member function âvoid
boost::program_options::typed_value<T, charT>::notify(const boost::any&)
const [with T = int, charT = char]â:
options_description_test.cpp:182: instantiated from here
../../../boost/any.hpp:216: warning: type qualifiers ignored on function
return type
}}}
Probably these warnings point to a real bug (changed type to "bug" until
it is clear).
I compiled "by-hand" with:
{{{
g++ options_description_test.cpp \
-g -Wall -Wextra -pedantic -I../../.. -L/my/private/libdir
-lboost_program_options -o a.out
}}}
I'm not quite sure, but I think any_cast is used in a wrong way. I added
any_cast_warning.patch which should solve this problem ... but please
review!
Thanks
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3603#comment:4> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC