mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Fix compiler warnings.
Initialize all data members in initializer lists. Reorder data members in initializer list to have the same order as in the class declaration. Comment or remove unused parameters and unused variables. Convert all old style casts to the correct and explicit c++ cast like const_cast, static_cast, dynamic_cast or reinterpret_cast. In most cases static_cast is used.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
bbadf09aad
commit
fb9b6086df
@@ -29,9 +29,9 @@ FairMQExample5Client::~FairMQExample5Client()
|
||||
{
|
||||
}
|
||||
|
||||
void FairMQExample5Client::CustomCleanup(void *data, void *hint)
|
||||
void FairMQExample5Client::CustomCleanup(void* /*data*/, void *hint)
|
||||
{
|
||||
delete (string*)hint;
|
||||
delete static_cast<string*>(hint);
|
||||
}
|
||||
|
||||
void FairMQExample5Client::Run()
|
||||
|
@@ -24,9 +24,9 @@ FairMQExample5Server::FairMQExample5Server()
|
||||
{
|
||||
}
|
||||
|
||||
void FairMQExample5Server::CustomCleanup(void *data, void *hint)
|
||||
void FairMQExample5Server::CustomCleanup(void* /*data*/, void *hint)
|
||||
{
|
||||
delete (string*)hint;
|
||||
delete static_cast<string*>(hint);
|
||||
}
|
||||
|
||||
void FairMQExample5Server::Run()
|
||||
|
Reference in New Issue
Block a user