diff --git a/include/boost/regex/v4/basic_regex_parser.hpp b/include/boost/regex/v4/basic_regex_parser.hpp index 22f5899d..e1987cd9 100644 --- a/include/boost/regex/v4/basic_regex_parser.hpp +++ b/include/boost/regex/v4/basic_regex_parser.hpp @@ -159,6 +159,8 @@ void basic_regex_parser::fail(regex_constants::error_type error_c boost::regex_error e(message, error_code, position); e.raise(); } +#else + (void)position; // suppress warnings. #endif }