HDFS-13534. libhdfs++: Fix GCC7 build. Contributed by James Clampffer.

This commit is contained in:
James Clampffer 2018-06-07 14:16:17 -04:00
parent 377ea1bcdf
commit b79ae5d93d
4 changed files with 4 additions and 3 deletions

View File

@ -58,6 +58,7 @@
#ifndef INCLUDE_HDFSPP_IOSERVICE_H_ #ifndef INCLUDE_HDFSPP_IOSERVICE_H_
#define INCLUDE_HDFSPP_IOSERVICE_H_ #define INCLUDE_HDFSPP_IOSERVICE_H_
#include <functional>
#include <memory> #include <memory>
// forward decl // forward decl

View File

@ -59,7 +59,7 @@ public:
void Connect(std::function<void(Status status, std::shared_ptr<DataNodeConnection> dn)> handler) override void Connect(std::function<void(Status status, std::shared_ptr<DataNodeConnection> dn)> handler) override
{(void)handler; /*TODO: Handshaking goes here*/}; {(void)handler; /*TODO: Handshaking goes here*/};
void Cancel(); void Cancel() override;
private: private:
DataTransferSaslStream(const DataTransferSaslStream &) = delete; DataTransferSaslStream(const DataTransferSaslStream &) = delete;
DataTransferSaslStream &operator=(const DataTransferSaslStream &) = delete; DataTransferSaslStream &operator=(const DataTransferSaslStream &) = delete;

View File

@ -87,7 +87,7 @@ public:
virtual void cancel() {} virtual void cancel() {}
virtual void close() {} virtual void close() {}
protected: protected:
virtual ProducerResult Produce() = 0; ProducerResult Produce() override = 0;
::asio::io_service *io_service_; ::asio::io_service *io_service_;
private: private:

View File

@ -82,7 +82,7 @@ public:
this->MockConnectionBase::async_write_some(buf, handler); this->MockConnectionBase::async_write_some(buf, handler);
} }
void Cancel() { void Cancel() override {
/* no-op, declared pure virtual */ /* no-op, declared pure virtual */
} }
}; };