Skip to content

Commit

Permalink
Fix unused variables warnings (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored and awegrzyn committed May 3, 2018
1 parent c2ed694 commit 691878e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/MonitoringFactory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace o2
namespace monitoring
{

std::unique_ptr<Backend> getInfoLogger(http::url uri) {
std::unique_ptr<Backend> getInfoLogger(http::url /*uri*/) {
return std::make_unique<backends::InfoLoggerBackend>();
}

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

std::unique_ptr<Backend> getApMon(http::url uri) {
#ifdef _WITH_APPMON
std::unique_ptr<Backend> getApMon(http::url uri) {
return std::make_unique<backends::ApMonBackend>(uri.path);
}
#else
std::unique_ptr<Backend> getApMon(http::url /*uri*/) {
throw std::runtime_error("ApMon backend is not enabled");
#endif
}
#endif

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

0 comments on commit 691878e

Please sign in to comment.