Commit 243e9b68 authored by Dominik Charousset's avatar Dominik Charousset

Fix warnings on GCC

parent f552d18e
...@@ -105,8 +105,11 @@ ...@@ -105,8 +105,11 @@
# define CAF_GCC # define CAF_GCC
# define CAF_DEPRECATED __attribute__((__deprecated__)) # define CAF_DEPRECATED __attribute__((__deprecated__))
# define CAF_PUSH_WARNINGS # define CAF_PUSH_WARNINGS
# define CAF_PUSH_NON_VIRTUAL_DTOR_WARNING # define CAF_PUSH_NON_VIRTUAL_DTOR_WARNING \
# define CAF_POP_WARNINGS _Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wnon-virtual-dtor\"")
# define CAF_POP_WARNINGS \
_Pragma("GCC diagnostic pop")
# define CAF_ANNOTATE_FALLTHROUGH static_cast<void>(0) # define CAF_ANNOTATE_FALLTHROUGH static_cast<void>(0)
# define CAF_COMPILER_VERSION \ # define CAF_COMPILER_VERSION \
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
......
...@@ -51,10 +51,6 @@ public: ...@@ -51,10 +51,6 @@ public:
/// Sends `response_message` and invalidates this handle afterwards. /// Sends `response_message` and invalidates this handle afterwards.
void deliver(message response_message) const; void deliver(message response_message) const;
actor_addr& to() {
return to_;
}
private: private:
actor_addr from_; actor_addr from_;
actor_addr to_; actor_addr to_;
......
...@@ -71,8 +71,10 @@ std::string to_string(const header &hdr) { ...@@ -71,8 +71,10 @@ std::string to_string(const header &hdr) {
} }
void read_hdr(deserializer& source, header& hdr) { void read_hdr(deserializer& source, header& hdr) {
source.read(reinterpret_cast<uint32_t&>(hdr.operation)) uint32_t operation;
.read(hdr.payload_len) source.read(operation);
hdr.operation = static_cast<basp::message_type>(operation);
source.read(hdr.payload_len)
.read(hdr.operation_data); .read(hdr.operation_data);
hdr.source_node.deserialize(source); hdr.source_node.deserialize(source);
hdr.dest_node.deserialize(source); hdr.dest_node.deserialize(source);
......
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