Fix compiler warnings (-Wunused-variable)

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
Ferry Huberts 2023-08-05 11:59:19 +02:00
parent fd93069799
commit 40f5b11194
4 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -252,8 +252,6 @@ void MemoryLabelTest::onRun() {
{
v_int32 iterationsCount = 100;
oatpp::String headersText =
"header0: value0\r\n"
"header0: value1\r\n"

View File

@ -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();

View File

@ -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();