Skip to content
Snippets Groups Projects
Commit 1364f062 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

comparison with string literal results in unspecified behavior [-Waddress]

parent 18efd4fb
No related branches found
No related tags found
No related merge requests found
Pipeline #11196 failed
......@@ -54,7 +54,7 @@ bool RGBDSource::snapshot(const std::string &fileprefix) {
RGBDSource *RGBDSource::create(nlohmann::json &config, ftl::net::Universe *net) {
auto &cfg = ftl::config::resolve(config);
if (cfg["type"].type_name() != "string") {
if (!cfg["type"].is_string()) {
LOG(ERROR) << "Missing RGB-D source type: " << cfg["type"].type_name();
//return nullptr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment