mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Fix compiler warnings. Mostly unused parameters have been removed.
This commit is contained in:
parent
2060f0b1d7
commit
d254efb91f
|
@ -34,7 +34,7 @@ void FairMQMerger::Run()
|
||||||
// store the channel references to avoid traversing the map on every loop iteration
|
// store the channel references to avoid traversing the map on every loop iteration
|
||||||
const FairMQChannel& dataOutChannel = fChannels.at("data-out").at(0);
|
const FairMQChannel& dataOutChannel = fChannels.at("data-out").at(0);
|
||||||
std::vector<FairMQChannel*> dataInChannels(fChannels.at("data-in").size());
|
std::vector<FairMQChannel*> dataInChannels(fChannels.at("data-in").size());
|
||||||
for (int i = 0; i < fChannels.at("data-in").size(); ++i)
|
for (unsigned int i = 0; i < fChannels.at("data-in").size(); ++i)
|
||||||
{
|
{
|
||||||
dataInChannels.at(i) = &(fChannels.at("data-in").at(i));
|
dataInChannels.at(i) = &(fChannels.at("data-in").at(i));
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,12 +98,12 @@ namespace fairmq
|
||||||
{
|
{
|
||||||
typedef std::string returned_type;
|
typedef std::string returned_type;
|
||||||
template<typename T>
|
template<typename T>
|
||||||
std::string Value(const po::variable_value& varValue,const std::string& type, const std::string& defaulted, const std::string& empty)
|
std::string Value(const po::variable_value& varValue,const std::string&, const std::string&, const std::string&)
|
||||||
{
|
{
|
||||||
return ConvertVariableValueToString<T>(varValue);
|
return ConvertVariableValueToString<T>(varValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
returned_type DefaultValue(const std::string& defaulted, const std::string& empty)
|
returned_type DefaultValue(const std::string&, const std::string&)
|
||||||
{
|
{
|
||||||
return std::string("empty value");
|
return std::string("empty value");
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,7 +142,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
merger.SetTransport(transportFactory);
|
merger.SetTransport(transportFactory);
|
||||||
|
|
||||||
for (int i = 0; i < options.inputAddress.size(); ++i)
|
for (unsigned int i = 0; i < options.inputAddress.size(); ++i)
|
||||||
{
|
{
|
||||||
FairMQChannel inputChannel(options.inputSocketType.at(i), options.inputMethod.at(i), options.inputAddress.at(i));
|
FairMQChannel inputChannel(options.inputSocketType.at(i), options.inputMethod.at(i), options.inputAddress.at(i));
|
||||||
inputChannel.UpdateSndBufSize(options.inputBufSize.at(i));
|
inputChannel.UpdateSndBufSize(options.inputBufSize.at(i));
|
||||||
|
|
|
@ -89,7 +89,7 @@ size_t FairMQMessageZMQ::GetSize()
|
||||||
return zmq_msg_size(&fMessage);
|
return zmq_msg_size(&fMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FairMQMessageZMQ::SetMessage(void* data, size_t size)
|
void FairMQMessageZMQ::SetMessage(void*, size_t)
|
||||||
{
|
{
|
||||||
// dummy method to comply with the interface. functionality not allowed in zeromq.
|
// dummy method to comply with the interface. functionality not allowed in zeromq.
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ inline void FairMQMessageZMQ::CloseMessage()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FairMQMessageZMQ::CleanUp(void* data, void* hint)
|
void FairMQMessageZMQ::CleanUp(void* data, void*)
|
||||||
{
|
{
|
||||||
free(data);
|
free(data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ FairMQPollerZMQ::FairMQPollerZMQ(unordered_map<string, vector<FairMQChannel>>& c
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (string channel : channelList)
|
for (string channel : channelList)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < channelsMap.at(channel).size(); ++i)
|
for (unsigned int i = 0; i < channelsMap.at(channel).size(); ++i)
|
||||||
{
|
{
|
||||||
index = fOffsetMap[channel] + i;
|
index = fOffsetMap[channel] + i;
|
||||||
|
|
||||||
|
|
|
@ -223,7 +223,7 @@ void* FairMQSocketZMQ::GetSocket() const
|
||||||
return fSocket;
|
return fSocket;
|
||||||
}
|
}
|
||||||
|
|
||||||
int FairMQSocketZMQ::GetSocket(int nothing) const
|
int FairMQSocketZMQ::GetSocket(int) const
|
||||||
{
|
{
|
||||||
// dummy method to comply with the interface. functionality not possible in zeromq.
|
// dummy method to comply with the interface. functionality not possible in zeromq.
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user