mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Fix Clang compiler warnings (-Winconsistent-missing-destructor-override)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
parent
9a2854be58
commit
330f64dd95
@ -298,7 +298,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
add_compiler_flags(10 "-Wno-global-constructors")
|
||||
add_compiler_flags(10 "-Wno-gnu-zero-variadic-macro-arguments")
|
||||
add_compiler_flags(10 "-Wno-implicit-int-conversion")
|
||||
add_compiler_flags(10 "-Wno-inconsistent-missing-destructor-override")
|
||||
add_compiler_flags(10 "-Wno-non-virtual-dtor")
|
||||
add_compiler_flags(10 "-Wno-padded")
|
||||
add_compiler_flags(10 "-Wno-pessimizing-move")
|
||||
|
@ -104,7 +104,7 @@ public:
|
||||
/**
|
||||
* Virtual destructor.
|
||||
*/
|
||||
~IOEventWorker();
|
||||
~IOEventWorker() override;
|
||||
|
||||
/**
|
||||
* Push list of tasks to worker.
|
||||
@ -158,7 +158,7 @@ public:
|
||||
/**
|
||||
* Virtual destructor.
|
||||
*/
|
||||
~IOEventWorkerForeman();
|
||||
~IOEventWorkerForeman() override;
|
||||
|
||||
/**
|
||||
* Push list of tasks to worker.
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
/**
|
||||
* Virtual destructor.
|
||||
*/
|
||||
~BufferOutputStream();
|
||||
~BufferOutputStream() override;
|
||||
|
||||
/**
|
||||
* Write `count` of bytes to stream.
|
||||
|
@ -72,7 +72,7 @@ public:
|
||||
/**
|
||||
* Virtual destructor.
|
||||
*/
|
||||
~FileInputStream();
|
||||
~FileInputStream() override;
|
||||
|
||||
/**
|
||||
* Get file.
|
||||
@ -160,7 +160,7 @@ public:
|
||||
/**
|
||||
* Virtual destructor.
|
||||
*/
|
||||
~FileOutputStream();
|
||||
~FileOutputStream() override;
|
||||
|
||||
/**
|
||||
* Get file.
|
||||
|
@ -365,7 +365,7 @@ public:
|
||||
return ptr;
|
||||
}
|
||||
|
||||
virtual ~PoolTemplate() {
|
||||
virtual ~PoolTemplate() override {
|
||||
stop();
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
* Virtual Destructor (See &id:oatpp::base::Countable;).
|
||||
* Close socket handle.
|
||||
*/
|
||||
~Connection();
|
||||
~Connection() override;
|
||||
|
||||
/**
|
||||
* Implementation of &id:oatpp::data::stream::IOStream::write;.
|
||||
|
@ -184,7 +184,7 @@ oatpp::async::CoroutineStarterForResult<const provider::ResourceHandle<data::str
|
||||
, m_isHandleOpened(false)
|
||||
{}
|
||||
|
||||
~ConnectCoroutine() {
|
||||
~ConnectCoroutine() override {
|
||||
if(m_result != nullptr) {
|
||||
freeaddrinfo(m_result);
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ public:
|
||||
/**
|
||||
* Virtual destructor.
|
||||
*/
|
||||
~ConnectionProvider();
|
||||
~ConnectionProvider() override;
|
||||
|
||||
/**
|
||||
* Close accept-socket.
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
/**
|
||||
* Virtual destructor. Close corresponding pipes.
|
||||
*/
|
||||
~Socket();
|
||||
~Socket() override;
|
||||
|
||||
/**
|
||||
* Limit the available amount of bytes to read from socket and limit the available amount of bytes to write to socket. <br>
|
||||
|
@ -161,7 +161,7 @@ public:
|
||||
COUNTER ++;
|
||||
}
|
||||
|
||||
~TestCoroutine() {
|
||||
~TestCoroutine() override {
|
||||
COUNTER --;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user