Commit 8f025383 authored by Dominik Charousset's avatar Dominik Charousset

Fix -pedantic warnings on GCC

parent 11ff1257
...@@ -60,11 +60,11 @@ CAF_BEGIN_TYPE_ID_BLOCK(curl_fuse, first_custom_type_id) ...@@ -60,11 +60,11 @@ CAF_BEGIN_TYPE_ID_BLOCK(curl_fuse, first_custom_type_id)
CAF_ADD_TYPE_ID(curl_fuse, (std::vector<char>) ) CAF_ADD_TYPE_ID(curl_fuse, (std::vector<char>) )
CAF_ADD_ATOM(curl_fuse, read_atom); CAF_ADD_ATOM(curl_fuse, read_atom)
CAF_ADD_ATOM(curl_fuse, fail_atom); CAF_ADD_ATOM(curl_fuse, fail_atom)
CAF_ADD_ATOM(curl_fuse, next_atom); CAF_ADD_ATOM(curl_fuse, next_atom)
CAF_ADD_ATOM(curl_fuse, reply_atom); CAF_ADD_ATOM(curl_fuse, reply_atom)
CAF_ADD_ATOM(curl_fuse, finished_atom); CAF_ADD_ATOM(curl_fuse, finished_atom)
CAF_END_TYPE_ID_BLOCK(curl_fuse) CAF_END_TYPE_ID_BLOCK(curl_fuse)
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
CAF_BEGIN_TYPE_ID_BLOCK(dining_philosophers, first_custom_type_id) CAF_BEGIN_TYPE_ID_BLOCK(dining_philosophers, first_custom_type_id)
CAF_ADD_ATOM(dining_philosophers, take_atom); CAF_ADD_ATOM(dining_philosophers, take_atom)
CAF_ADD_ATOM(dining_philosophers, taken_atom); CAF_ADD_ATOM(dining_philosophers, taken_atom)
CAF_ADD_ATOM(dining_philosophers, eat_atom); CAF_ADD_ATOM(dining_philosophers, eat_atom)
CAF_ADD_ATOM(dining_philosophers, think_atom); CAF_ADD_ATOM(dining_philosophers, think_atom)
CAF_END_TYPE_ID_BLOCK(dining_philosophers) CAF_END_TYPE_ID_BLOCK(dining_philosophers)
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
CAF_BEGIN_TYPE_ID_BLOCK(fan_out_request, first_custom_type_id) CAF_BEGIN_TYPE_ID_BLOCK(fan_out_request, first_custom_type_id)
CAF_ADD_ATOM(fan_out_request, row_atom); CAF_ADD_ATOM(fan_out_request, row_atom)
CAF_ADD_ATOM(fan_out_request, column_atom); CAF_ADD_ATOM(fan_out_request, column_atom)
CAF_ADD_ATOM(fan_out_request, average_atom); CAF_ADD_ATOM(fan_out_request, average_atom)
CAF_END_TYPE_ID_BLOCK(fan_out_request) CAF_END_TYPE_ID_BLOCK(fan_out_request)
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
CAF_BEGIN_TYPE_ID_BLOCK(fixed_stack, first_custom_type_id) CAF_BEGIN_TYPE_ID_BLOCK(fixed_stack, first_custom_type_id)
CAF_ADD_ATOM(fixed_stack, pop_atom); CAF_ADD_ATOM(fixed_stack, pop_atom)
CAF_ADD_ATOM(fixed_stack, push_atom); CAF_ADD_ATOM(fixed_stack, push_atom)
CAF_END_TYPE_ID_BLOCK(fixed_stack) CAF_END_TYPE_ID_BLOCK(fixed_stack)
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
CAF_BEGIN_TYPE_ID_BLOCK(group_chat, first_custom_type_id) CAF_BEGIN_TYPE_ID_BLOCK(group_chat, first_custom_type_id)
CAF_ADD_ATOM(group_chat, broadcast_atom); CAF_ADD_ATOM(group_chat, broadcast_atom)
CAF_END_TYPE_ID_BLOCK(group_chat) CAF_END_TYPE_ID_BLOCK(group_chat)
......
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
#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 "-Wpedantic"
#elif defined(CAF_MSVC) #elif defined(CAF_MSVC)
# pragma warning(push) # pragma warning(push)
# pragma warning(disable : 4200) # pragma warning(disable : 4200)
...@@ -155,6 +158,8 @@ void message_data_init(byte* storage, T&& x, Ts&&... xs) { ...@@ -155,6 +158,8 @@ 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(MSVC) #elif defined(CAF_GCC)
# pragma GCC diagnostic pop
#elif defined(CAF_MSVC)
# pragma warning(pop) # pragma warning(pop)
#endif #endif
...@@ -263,7 +263,7 @@ CAF_BEGIN_TYPE_ID_BLOCK(core_module, 0) ...@@ -263,7 +263,7 @@ CAF_BEGIN_TYPE_ID_BLOCK(core_module, 0)
CAF_ADD_TYPE_ID(core_module, (std::vector<caf::config_value>) ) CAF_ADD_TYPE_ID(core_module, (std::vector<caf::config_value>) )
CAF_ADD_TYPE_ID(core_module, (std::vector<caf::strong_actor_ptr>) ) CAF_ADD_TYPE_ID(core_module, (std::vector<caf::strong_actor_ptr>) )
CAF_ADD_TYPE_ID(core_module, (std::vector<caf::weak_actor_ptr>) ) CAF_ADD_TYPE_ID(core_module, (std::vector<caf::weak_actor_ptr>) )
CAF_ADD_TYPE_ID(core_module, (std::vector<std::pair<std::string, message>>) ); CAF_ADD_TYPE_ID(core_module, (std::vector<std::pair<std::string, message>>) )
// -- predefined atoms // -- predefined atoms
......
...@@ -93,25 +93,25 @@ using address_listing = std::map<protocol::network, std::vector<std::string>>; ...@@ -93,25 +93,25 @@ using address_listing = std::map<protocol::network, std::vector<std::string>>;
CAF_BEGIN_TYPE_ID_BLOCK(io_module, detail::io_module_begin) CAF_BEGIN_TYPE_ID_BLOCK(io_module, detail::io_module_begin)
CAF_ADD_TYPE_ID(io_module, (caf::io::accept_handle)); CAF_ADD_TYPE_ID(io_module, (caf::io::accept_handle))
CAF_ADD_TYPE_ID(io_module, (caf::io::acceptor_closed_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::acceptor_closed_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::acceptor_passivated_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::acceptor_passivated_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::connection_closed_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::connection_closed_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::connection_handle)); CAF_ADD_TYPE_ID(io_module, (caf::io::connection_handle))
CAF_ADD_TYPE_ID(io_module, (caf::io::connection_passivated_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::connection_passivated_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::data_transferred_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::data_transferred_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::datagram_sent_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::datagram_sent_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::datagram_servant_closed_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::datagram_servant_closed_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::datagram_servant_passivated_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::datagram_servant_passivated_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::datagram_servant_ptr)); CAF_ADD_TYPE_ID(io_module, (caf::io::datagram_servant_ptr))
CAF_ADD_TYPE_ID(io_module, (caf::io::doorman_ptr)); CAF_ADD_TYPE_ID(io_module, (caf::io::doorman_ptr))
CAF_ADD_TYPE_ID(io_module, (caf::io::network::address_listing)); CAF_ADD_TYPE_ID(io_module, (caf::io::network::address_listing))
CAF_ADD_TYPE_ID(io_module, (caf::io::network::protocol)); CAF_ADD_TYPE_ID(io_module, (caf::io::network::protocol))
CAF_ADD_TYPE_ID(io_module, (caf::io::network::receive_buffer)); CAF_ADD_TYPE_ID(io_module, (caf::io::network::receive_buffer))
CAF_ADD_TYPE_ID(io_module, (caf::io::new_connection_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::new_connection_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::new_data_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::new_data_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::new_datagram_msg)); CAF_ADD_TYPE_ID(io_module, (caf::io::new_datagram_msg))
CAF_ADD_TYPE_ID(io_module, (caf::io::scribe_ptr)); CAF_ADD_TYPE_ID(io_module, (caf::io::scribe_ptr))
CAF_END_TYPE_ID_BLOCK(io_module) CAF_END_TYPE_ID_BLOCK(io_module)
......
...@@ -13,8 +13,8 @@ struct se_event; ...@@ -13,8 +13,8 @@ struct se_event;
CAF_BEGIN_TYPE_ID_BLOCK(caf_vec, first_custom_type_id) CAF_BEGIN_TYPE_ID_BLOCK(caf_vec, first_custom_type_id)
CAF_ADD_TYPE_ID(caf_vec, (entity)); CAF_ADD_TYPE_ID(caf_vec, (entity))
CAF_ADD_TYPE_ID(caf_vec, (se_event)); CAF_ADD_TYPE_ID(caf_vec, (se_event))
CAF_END_TYPE_ID_BLOCK(caf_vec) CAF_END_TYPE_ID_BLOCK(caf_vec)
......
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