2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

Remove redundant assert

> For all functions described in this subclause that accept an argument of type wint_t, the value shall
> be representable as a wchar_t or shall equal the value of the macro WEOF. If this argument has any
> other value, the behavior is undefined.

There is no way to produce a `wint_t` value non-representable as `wchar_t` with `std::char_traits<wchar_t>::to_int_type`.
This commit is contained in:
Nikita Kniazev
2020-07-16 19:36:29 +03:00
parent 49f7452cc1
commit 9ee9a1ece3
3 changed files with 3 additions and 31 deletions

View File

@@ -111,10 +111,8 @@ before_install:
feature.feature known-warnings : suppress : optional incidental propagated ;
toolset.flags gcc.compile OPTIONS <known-warnings>suppress :
-Wno-maybe-uninitialized # this warning is known to give false positives
-Wno-sign-compare
# -Wextra warnings:
-Wno-deprecated-copy # Proto, Phoenix, GCC bug 92145
-Wno-type-limits
: unchecked ;
toolset.flags clang-linux.compile OPTIONS <known-warnings>suppress :
-Wno-deprecated-copy # Proto, Phoenix