Opened 16 years ago
Closed 16 years ago
#771 closed Support Requests (Rejected)
How to avoid compilation warning?
Reported by: | nobody | Owned by: | Joel de Guzman |
---|---|---|---|
Milestone: | Component: | spirit | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
Hi, We use the boost version 1.33.1 , which is compiled with STLport. We get the annoyed compilation warning on the spirit/utility/impl/chset/range_run.ipp: > more t.cpp #include "boost/spirit/utility/distinct.hpp" > g++ -I<path_to_STLport>/5.0.1/stlport - I<path_to_boost>/1.33.1_with_stlport_5.0.1/include -c t.cpp /p/dt/cad/i386_linux26/STLport/5.0.1/stlport/stl/_algo base.h: In function `const _Tp& stlp_std::min(const _Tp&, const _Tp&) [with _Tp = wchar_t]': /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset/range_run.ipp :69: instantiated from `void boost::spirit::utility::impl::range<CharT>::merge (const boost::spirit::utility::impl::range<CharT>&) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset/range_run.ipp :109: instantiated from `void boost::spirit::utility::impl::range_run<CharT>::merge (typename stlp_std::vector<boost::spirit::utility::impl::range<C harT>, stlp_std::allocator<boost::spirit::utility::impl::rang e<CharT> > >::iterator, const boost::spirit::utility::impl::range<CharT>&) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset/range_run.ipp :137: instantiated from `void boost::spirit::utility::impl::range_run<CharT>::set (const boost::spirit::utility::impl::range<CharT>&) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset/basic_chset.i pp:49: instantiated from `void boost::spirit::basic_chset<CharT>::set(CharT) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset.ipp:117: instantiated from `boost::spirit::chset<CharT>::chset (CharT) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/chset.hpp:132: instantiated from here /p/dt/cad/i386_linux26/STLport/5.0.1/stlport/stl/_algo base.h:121: warning: returning reference to temporary Is it possible to avoid or to suppress this warning? Thanks, Genia
Change History (2)
comment:2 by , 16 years ago
Status: | assigned → closed |
---|
Logged In: YES user_id=237817 Isn't this an STLport problem? The error seems to point to their header files. Anyway, The proper forum to post the problem to is Spirit's mailing list: https://lists.sourceforge.net/lists/listinfo/spirit-general I am closing this for now. If you have follow up questions, please post to the list.
Note:
See TracTickets
for help on using tickets.