[patch, boost.regex] Kill warning when compiling without exceptions

This is the only warning I get when compiling the subset of boost that is included in LyX. Would be nice to see this in 1.33. This is with gcc 3.3.3. diff -ru --exclude=CVS boost/boost/regex/v4/basic_regex_parser.hpp lyx-upboost/boost/boost/regex/v4/basic_regex_parser.hpp --- boost/boost/regex/v4/basic_regex_parser.hpp 2005-05-09 10:35:34.000000000 +0200 +++ lyx-upboost/boost/boost/regex/v4/basic_regex_parser.hpp 2005-05-10 22:27:37.124642889 +0200 @@ -147,6 +147,8 @@ template <class charT, class traits> void basic_regex_parser<charT, traits>::fail(regex_constants::error_type error_code, std::ptrdiff_t position) { + // Avoid warnings when compilinging without exceptions. + (void)position; if(0 == this->m_pdata->m_status) // update the error code if not already set this->m_pdata->m_status = error_code; m_position = m_end; // don't bother parsing anything else -- Lgb
participants (2)
-
John Maddock
-
larsbj@gullik.net