boostorg / variant

Boost.org variant module
https://boost.org/libs/variant
45 stars 67 forks source link

Compiler warning when building release #99

Closed orgads closed 2 years ago

orgads commented 2 years ago

This is with GCC 4.1.2.

/usr/include/boost/variant/detail/forced_return.hpp: In function 'T boost::detail::variant::forced_return() [with T = bool]':
/usr/include/boost/variant/detail/forced_return.hpp:41: warning: 'noreturn' function does return
apolukhin commented 2 years ago

Modern versions of GCC do not complain on that. Warnings for such outdated versions of compilers won't be fixed in the library, as it may (and would) add warnings on modern compilers.