Skip to content

Commit 691878e

Browse files
ktfawegrzyn
authored andcommitted
Fix unused variables warnings (#52)
1 parent c2ed694 commit 691878e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/MonitoringFactory.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace o2
2727
namespace monitoring
2828
{
2929

30-
std::unique_ptr<Backend> getInfoLogger(http::url uri) {
30+
std::unique_ptr<Backend> getInfoLogger(http::url /*uri*/) {
3131
return std::make_unique<backends::InfoLoggerBackend>();
3232
}
3333

@@ -45,13 +45,15 @@ std::unique_ptr<Backend> getInfluxDb(http::url uri) {
4545
throw std::runtime_error("InfluxDB transport protocol not supported");
4646
}
4747

48-
std::unique_ptr<Backend> getApMon(http::url uri) {
4948
#ifdef _WITH_APPMON
49+
std::unique_ptr<Backend> getApMon(http::url uri) {
5050
return std::make_unique<backends::ApMonBackend>(uri.path);
51+
}
5152
#else
53+
std::unique_ptr<Backend> getApMon(http::url /*uri*/) {
5254
throw std::runtime_error("ApMon backend is not enabled");
53-
#endif
5455
}
56+
#endif
5557

5658
std::unique_ptr<Backend> getFlume(http::url uri) {
5759
return std::make_unique<backends::Flume>(uri.host, uri.port);

0 commit comments

Comments
 (0)