Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit 969f2326 authored by Alessio Netti's avatar Alessio Netti
Browse files

Fixing compiler warnings

parent 577f1656
......@@ -237,7 +237,7 @@ public:
virtual void init(boost::asio::io_service& io) final override {
OperatorInterface::init(io);
for(const auto u : _units)
for(const auto& u : _units)
u->init(_interval, _queueSize);
this->execOnInit();
......
......@@ -180,11 +180,11 @@ public:
* @param interval Sampling interval in milliseconds
*/
void init(unsigned int interval, unsigned int queueSize) override {
for(const auto s : _outputs)
for(const auto &s : _outputs)
if (!s->isInit())
s->initSensor(interval, queueSize);
for (const auto &su : _subUnits)
for (const auto s : su->getOutputs())
for (const auto &s : su->getOutputs())
if (!s->isInit())
s->initSensor(interval, queueSize);
}
......
......@@ -67,8 +67,7 @@ public:
*/
AnalyticsController(DCDB::SensorConfig *dcdbCfg, DCDB::SensorDataStore *dcdbStore, boost::asio::io_context& io)
: _dcdbCfg(dcdbCfg),
_dcdbStore(dcdbStore),
_io(io) {
_dcdbStore(dcdbStore) {
_manager = make_shared<OperatorManager>(io);
_navigator = nullptr;
_sensorCache = nullptr;
......@@ -221,8 +220,6 @@ private:
// Main management thread for the analytics controller
boost::thread _mainThread;
// IO service for the operators
boost::asio::io_context& _io;
// Underlying thread pool
boost::thread_group _threads;
// Dummy task to keep thread pool alive
......
......@@ -34,9 +34,9 @@
using namespace std;
PluginManager::PluginManager(boost::asio::io_context &io, const pluginSettings_t &pluginSettings)
: _io(io),
_pluginSettings(pluginSettings),
_cfgFilePath("./") {}
: _pluginSettings(pluginSettings),
_cfgFilePath("./"),
_io(io) {}
PluginManager::~PluginManager() {
for (const auto &p : _plugins)
......
......@@ -207,7 +207,7 @@ class SensorGroupInterface {
*/
virtual float getMsgRate() {
float val = 0;
for (const auto s: _baseSensors) {
for (const auto& s: _baseSensors) {
if(s->getSubsampling() > 0)
val+= 1.0f / (float)s->getSubsampling();
}
......
Markdown is supported
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