Make `-Wnoexcept-type` non-fatal, if present
This warning was introduced with gcc-7 to (quoting the documentation) "Warn if the C++1z feature making noexcept part of a function type changes the mangled name of a symbol relative to C++14. Enabled by -Wabi and -Wc++1z-compat.". It is triggered from the `GenericFunctor` class template. It can be safely made not fatal, because this class template is not exposed outside and the whole project is currently compiled with the same C++ standard compiler flags. This commit adds machinery to `CMakeLists.txt` to make the warning not fatal, but only if present. Disabling it when not present would trigger build errors.
Please register or sign in to comment