diff --git a/libuavcan_drivers/linux/apps/uavcan_dynamic_node_id_server.cpp b/libuavcan_drivers/linux/apps/uavcan_dynamic_node_id_server.cpp index 12e4bc9bad..3d4f3de299 100644 --- a/libuavcan_drivers/linux/apps/uavcan_dynamic_node_id_server.cpp +++ b/libuavcan_drivers/linux/apps/uavcan_dynamic_node_id_server.cpp @@ -657,7 +657,8 @@ int main(int argc, const char** argv) */ options.storage_path += "/node_" + std::to_string(options.node_id.get()); - (void)std::system(("mkdir -p '" + options.storage_path + "' &>/dev/null").c_str()); + int system_res = std::system(("mkdir -p '" + options.storage_path + "' &>/dev/null").c_str()); + (void)system_res; const auto event_log_file = options.storage_path + "/events.log"; const auto storage_path = options.storage_path + "/storage/";