Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
c9a78389
Commit
c9a78389
authored
Mar 24, 2014
by
David COME
Browse files
Add namespace to uppressUnusedVariable and amended existing files for fixing the consequences
parent
b7c2ab97
Changes
3
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/RecallTaskInjector.cpp
View file @
c9a78389
...
...
@@ -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"
);
...
...
castor/tape/tapeserver/daemon/RecallTaskInjectorTest.cpp
View file @
c9a78389
...
...
@@ -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
++
];
}
...
...
castor/tape/tapeserver/utils/suppressUnusedVariable.hpp
View file @
c9a78389
...
...
@@ -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 */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment