mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Fix compiler warnings (-Wunused-variable)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
parent
fd93069799
commit
40f5b11194
@ -101,7 +101,7 @@ add_compiler_flags("-Wunused-macros") # gc
|
||||
#add_compiler_flags("-Wunused-parameter") # gcc 4.6.0
|
||||
add_compiler_flags("-Wunused-result") # gcc 4.6.0
|
||||
add_compiler_flags("-Wunused-value") # gcc 4.6.0
|
||||
#add_compiler_flags("-Wunused-variable") # gcc 4.6.0
|
||||
add_compiler_flags("-Wunused-variable") # gcc 4.6.0
|
||||
|
||||
add_compiler_flags("-Wunused-local-typedefs") # gcc 4.7.0
|
||||
|
||||
@ -212,7 +212,6 @@ add_compiler_flags("-Wno-pessimizing-move")
|
||||
add_compiler_flags("-Wno-sign-compare")
|
||||
add_compiler_flags("-Wno-suggest-attribute=format")
|
||||
add_compiler_flags("-Wno-unused-parameter")
|
||||
add_compiler_flags("-Wno-unused-variable")
|
||||
|
||||
#
|
||||
# Sanitize flags
|
||||
|
@ -252,8 +252,6 @@ void MemoryLabelTest::onRun() {
|
||||
|
||||
{
|
||||
|
||||
v_int32 iterationsCount = 100;
|
||||
|
||||
oatpp::String headersText =
|
||||
"header0: value0\r\n"
|
||||
"header0: value1\r\n"
|
||||
|
@ -163,7 +163,7 @@ void PipelineAsyncTest::onRun() {
|
||||
oatpp::data::stream::BufferOutputStream receiveStream;
|
||||
oatpp::data::buffer::IOBuffer ioBuffer;
|
||||
|
||||
auto res = oatpp::data::stream::transfer(connection.object.get(), &receiveStream, sample->size() * m_pipelineSize, ioBuffer.getData(), ioBuffer.getSize());
|
||||
oatpp::data::stream::transfer(connection.object.get(), &receiveStream, sample->size() * m_pipelineSize, ioBuffer.getData(), ioBuffer.getSize());
|
||||
|
||||
auto result = receiveStream.toString();
|
||||
|
||||
|
@ -151,7 +151,7 @@ void PipelineTest::onRun() {
|
||||
|
||||
oatpp::data::buffer::IOBuffer ioBuffer;
|
||||
|
||||
auto res = oatpp::data::stream::transfer(&inputStream, connection.object.get(), 0, ioBuffer.getData(), ioBuffer.getSize());
|
||||
oatpp::data::stream::transfer(&inputStream, connection.object.get(), 0, ioBuffer.getData(), ioBuffer.getSize());
|
||||
|
||||
});
|
||||
|
||||
@ -164,7 +164,7 @@ void PipelineTest::onRun() {
|
||||
v_io_size transferSize = sample->size() * m_pipelineSize;
|
||||
|
||||
OATPP_LOGD(TAG, "want to Receive %d bytes", transferSize);
|
||||
auto res = oatpp::data::stream::transfer(connection.object.get(), &receiveStream, transferSize, ioBuffer.getData(), ioBuffer.getSize());
|
||||
oatpp::data::stream::transfer(connection.object.get(), &receiveStream, transferSize, ioBuffer.getData(), ioBuffer.getSize());
|
||||
|
||||
auto result = receiveStream.toString();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user