Commit 27e0b799 authored by Daniel Campora's avatar Daniel Campora
Browse files

Remove GCC 11 dbg warning.

parent 484941f0
Pipeline #3193156 waiting for manual action with stages
in 25 minutes and 11 seconds
......@@ -67,9 +67,14 @@ namespace Allen {
using postconditions = append_to_tuple_t<typename recursive_contracts::postconditions, A>;
};
#if __GNUC__ == 11
// Deal with spurious -Wnonnull from GCC 11 dbg builds
// Perhaps https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003
#pragma GCC diagnostic ignored "-Wnonnull"
#endif
// Type-erased algorithm
class TypeErasedAlgorithm {
struct vtable {
std::string (*name)(void const*) = nullptr;
std::any (*create_arg_ref_manager)(
......@@ -264,6 +269,10 @@ namespace Allen {
}
};
#if __GNUC__ == 11
#pragma GCC diagnostic pop
#endif
// Tool to instantiate algorithms
template<typename T>
TypeErasedAlgorithm instantiate_algorithm(const std::string& name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment