mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Fix various warnings
-Wunused-parameter -Wreorder -Wsign-compare -Wunused-private-field
This commit is contained in:
committed by
Mohammad Al-Turany
parent
811e716731
commit
72f5cdef58
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <FairMQDevice.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <thread>
|
||||
|
||||
namespace fair
|
||||
@@ -53,7 +54,7 @@ class PairLeft : public FairMQDevice
|
||||
if (ret > 0) {
|
||||
auto content = std::string{static_cast<char*>(msg6->GetData()), msg6->GetSize()};
|
||||
LOG(info) << ret << ", " << msg6->GetSize() << ", '" << content << "'";
|
||||
if (msg6->GetSize() == ret && content == "testdata1234") counter++;
|
||||
if (msg6->GetSize() == static_cast<std::size_t>(ret) && content == "testdata1234") counter++;
|
||||
}
|
||||
if (counter == 6) LOG(info) << "Simple message with short text data successfull";
|
||||
|
||||
|
Reference in New Issue
Block a user