From d5b98567db90491a04b212136a548fbb0adb1173 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Fri, 2 Sep 2016 13:44:30 +0200 Subject: [PATCH] Fix unused variables, init order and effc++ warnings. --- examples/MQ/4-copypush/FairMQExample4Sampler.cxx | 2 +- examples/MQ/8-multipart/FairMQExample8Sampler.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/MQ/4-copypush/FairMQExample4Sampler.cxx b/examples/MQ/4-copypush/FairMQExample4Sampler.cxx index 515b7870..71c50be1 100644 --- a/examples/MQ/4-copypush/FairMQExample4Sampler.cxx +++ b/examples/MQ/4-copypush/FairMQExample4Sampler.cxx @@ -36,7 +36,7 @@ void FairMQExample4Sampler::Run() std::unique_ptr msg(NewMessage(number, // data pointer sizeof(uint64_t), // data size - [](void* data, void* hint){ delete static_cast(data); } // callback to deallocate after the transfer + [](void* data, void* /*hint*/){ delete static_cast(data); } // callback to deallocate after the transfer )); LOG(INFO) << "Sending \"" << counter << "\""; diff --git a/examples/MQ/8-multipart/FairMQExample8Sampler.cxx b/examples/MQ/8-multipart/FairMQExample8Sampler.cxx index 45106c20..4eb305e1 100644 --- a/examples/MQ/8-multipart/FairMQExample8Sampler.cxx +++ b/examples/MQ/8-multipart/FairMQExample8Sampler.cxx @@ -44,7 +44,7 @@ void FairMQExample8Sampler::Run() parts.AddPart(NewMessage(header, // data pointer sizeof(Ex8Header), // data size - [](void* data, void* hint) { delete static_cast(data); } // callback to deallocate after the transfer + [](void* data, void* /*hint*/) { delete static_cast(data); } // callback to deallocate after the transfer )); parts.AddPart(NewMessage(1000));