Commit c9a78389 authored by David COME's avatar David COME
Browse files

Add namespace to uppressUnusedVariable and amended existing files for fixing the consequences

parent b7c2ab97
......@@ -61,7 +61,7 @@ void RecallTaskInjector::injectBulkRecalls(const std::vector<castor::tape::tapeg
LogContext::ScopedParam(m_lc, Param("NSFILENSHOST", (*it)->nshost())),
LogContext::ScopedParam(m_lc, Param("NSFILEPATH", (*it)->path()))
};
suppresUnusedVariable(sp[0]);
tape::utils::suppresUnusedVariable(sp[0]);
m_lc.log(LOG_INFO, "Logged file to recall");
......@@ -87,7 +87,7 @@ bool RecallTaskInjector::synchronousInjection(uint64_t maxFiles, uint64_t byteSi
LogContext::ScopedParam(m_lc, Param("connectDuration", reqReport.connectDuration)),
LogContext::ScopedParam(m_lc, Param("sendRecvDuration", reqReport.sendRecvDuration))
};
suppresUnusedVariable(sp);
tape::utils::suppresUnusedVariable(sp);
if(NULL==filesToRecallList.get()) {
m_lc.log(LOG_ERR, "Get called but no files to retrieve");
......
......@@ -45,7 +45,7 @@ public:
report.transactionId=666;
report.connectDuration=42;
report.sendRecvDuration=21;
std::cout<<m_current<<"<?"<<lists.size()<<std::endl;
return lists[m_current++];
}
......
......@@ -6,9 +6,13 @@
*/
#ifndef SUPPRESSUNUSEDVARIABLE_HPP
#define SUPPRESSUNUSEDVARIABLE_HPP
namespace castor {
namespace tape {
namespace utils {
template <class T> void suppresUnusedVariable(const T&){}
}}}
#endif /* SUPPRESSUNUSEDVARIABLE_HPP */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment