Commit 447b1d98 authored by Dominik Charousset's avatar Dominik Charousset

Fix some warnings/errors on GCC

parent 7063e61e
...@@ -142,7 +142,7 @@ public: ...@@ -142,7 +142,7 @@ public:
if (arg_types == msg.types()) { if (arg_types == msg.types()) {
typename trait::message_view_type xs{msg}; typename trait::message_view_type xs{msg};
using fun_result = decltype(detail::apply_args(fun, xs)); using fun_result = decltype(detail::apply_args(fun, xs));
if constexpr (std::is_same_v<void, fun_result>) { if constexpr (std::is_same<void, fun_result>::value) {
detail::apply_args(fun, xs); detail::apply_args(fun, xs);
result = f.visit(unit) ? match_result::match : match_result::skip; result = f.visit(unit) ? match_result::match : match_result::skip;
} else { } else {
......
...@@ -32,9 +32,6 @@ ...@@ -32,9 +32,6 @@
#ifdef CAF_CLANG #ifdef CAF_CLANG
# pragma clang diagnostic push # pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc99-extensions" # pragma clang diagnostic ignored "-Wc99-extensions"
#elif defined(CAF_GCC)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wc99-extensions"
#endif #endif
namespace caf::detail { namespace caf::detail {
...@@ -155,6 +152,4 @@ void message_data_init(byte* storage, T&& x, Ts&&... xs) { ...@@ -155,6 +152,4 @@ void message_data_init(byte* storage, T&& x, Ts&&... xs) {
#ifdef CAF_CLANG #ifdef CAF_CLANG
# pragma clang diagnostic pop # pragma clang diagnostic pop
#elif defined(CAF_GCC)
# pragma GCC diagnostic pop
#endif #endif
...@@ -113,7 +113,7 @@ constexpr type_id_t first_custom_type_id = 200; ...@@ -113,7 +113,7 @@ constexpr type_id_t first_custom_type_id = 200;
}; \ }; \
template <> \ template <> \
struct type_name<CAF_PP_EXPAND fully_qualified_name> { \ struct type_name<CAF_PP_EXPAND fully_qualified_name> { \
[[maybe_unused]] static constexpr const char* value \ static constexpr const char* value \
= CAF_PP_STR(CAF_PP_EXPAND fully_qualified_name); \ = CAF_PP_STR(CAF_PP_EXPAND fully_qualified_name); \
}; \ }; \
template <> \ template <> \
......
Markdown is supported
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