Skip to content

Commit

Permalink
* Fixing override warnings in clang for Fragmentation.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jredmondson committed Oct 17, 2018
1 parent eef8ab3 commit ec1ec22
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/madara/transport/Fragmentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class MADARA_EXPORT FragmentMessageHeader : public MessageHeader
* different from sizeof (MessageHeader) because of compiler
* optimizations for word boundaries
**/
virtual uint32_t encoded_size(void) const;
virtual uint32_t encoded_size(void) const override;

/**
* Returns the size of the encoded MessageHeader class, which may be
Expand All @@ -88,7 +88,8 @@ class MADARA_EXPORT FragmentMessageHeader : public MessageHeader
* buffer to read
* @return current buffer position for next read
**/
virtual const char* read(const char* buffer, int64_t& buffer_remaining);
virtual const char* read(
const char* buffer, int64_t& buffer_remaining) override;

/**
* Assignment operator for regular message header
Expand All @@ -103,14 +104,14 @@ class MADARA_EXPORT FragmentMessageHeader : public MessageHeader
* buffer to read
* @return current buffer position for next write
**/
virtual char* write(char* buffer, int64_t& buffer_remaining);
virtual char* write(char* buffer, int64_t& buffer_remaining) override;

/**
* Compares the fields of this instance to another instance
* @param other the other instance to compare against
* @return true if equal, false otherwise
**/
virtual bool equals(const MessageHeader& other);
virtual bool equals(const MessageHeader& other) override;

/**
* Tests the buffer for a reduced message identifier
Expand Down

0 comments on commit ec1ec22

Please sign in to comment.