Skip to content

Commit cca6730

Browse files
committed
Fixing lint warnings.
1 parent 25a8b4f commit cca6730

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/CIBApplication.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using namespace dunedaq::appmodel;
4444
std::vector<const confmodel::Resource*>
4545
CIBApplication::contained_resources() const {
4646
std::vector<const confmodel::Resource*> resources;
47-
resources.push_back(dynamic_cast<const confmodel::Resource*>(get_board()));
47+
resources.push_back(dynamic_cast<const confmodel::Resource *>(get_board())); // NOLINT(runtime/rtti)
4848
return resources;
4949
}
5050

@@ -133,17 +133,17 @@ CIBApplication::generate_modules(const confmodel::Session* session) const
133133
std::vector<conffwk::ConfigObject> CIB_module_outputs;
134134
auto source_id = get_source_id();
135135

136-
auto id = source_id->get_sid();
136+
int id = static_cast<int>(source_id->get_sid());
137137

138138
// ----------------------------
139139
// create DLH
140140
// ----------------------------
141-
auto det_id = 1; // TODO Eric Flumerfelt <eflumerf@fnal.gov>, 08-Feb-2024: This is a magic number corresponding to kDAQ
141+
int det_id = 1; // TODO Eric Flumerfelt <eflumerf@fnal.gov>, 08-Feb-2024: This is a magic number corresponding to kDAQ
142142
TLOG() << "creating OKS configuration object for CIB Data Link Handler class " << dlhClass << ", id " << id;
143143
std::string uid("DLH-CIB");
144144
conffwk::ConfigObject dlhObj = obj_fac.create( dlhClass, uid );
145-
dlhObj.set_by_val<uint32_t>("source_id", id);
146-
dlhObj.set_by_val<uint32_t>("detector_id", det_id);
145+
dlhObj.set_by_val<uint32_t>("source_id", static_cast<uint32_t>(id));
146+
dlhObj.set_by_val<uint32_t>("detector_id", static_cast<uint32_t>(det_id));
147147
dlhObj.set_by_val<bool>("post_processing_enabled", false);
148148
dlhObj.set_obj("module_configuration", &dlhConf->config_object());
149149

@@ -196,9 +196,9 @@ CIBApplication::generate_modules(const confmodel::Session* session) const
196196

197197
obj_fac.update_modules(modules);
198198
// return modules;
199-
}
199+
} // NOLINT
200200

201-
nlohmann::json CIBoardConf::get_cib_json(const dunedaq::confmodel::Session &session, std::optional<std::string> socket_host, std::optional<uint16_t> socket_port) const
201+
nlohmann::json CIBoardConf::get_cib_json(const dunedaq::confmodel::Session &session, std::optional<std::string> socket_host, std::optional<uint16_t> socket_port) const
202202
{
203203

204204
// shut up compiler!
@@ -209,7 +209,7 @@ nlohmann::json CIBoardConf::get_cib_json(const dunedaq::confmodel::Session &sess
209209
{
210210
json["sockets"]["receiver"] = nlohmann::json::object();
211211
json["sockets"]["receiver"]["host"] = socket_host.value();
212-
json["sockets"]["receiver"]["port"] = socket_port.value();
212+
json["sockets"]["receiver"]["port"] = socket_port.value(); // NOLINT(build/unsigned)
213213
}
214214
else
215215
{

0 commit comments

Comments
 (0)