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
@@ -7,6 +7,7 @@
|
||||
********************************************************************************/
|
||||
|
||||
#include <FairMQDevice.h>
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
@@ -51,7 +52,7 @@ class PairRight : public FairMQDevice
|
||||
if (ret > 0) {
|
||||
auto content = std::string{static_cast<char*>(msg5->GetData()), msg5->GetSize()};
|
||||
LOG(info) << ret << ", " << msg5->GetSize() << ", '" << content << "'";
|
||||
if (msg5->GetSize() == ret && content == "testdata1234") counter++;
|
||||
if (msg5->GetSize() == static_cast<std::size_t>(ret) && content == "testdata1234") counter++;
|
||||
}
|
||||
auto msg6(NewSimpleMessageFor("data", 0, "testdata1234"));
|
||||
if (Send(msg6, "data") >= 0) counter++;
|
||||
|
Reference in New Issue
Block a user