mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Warning fix in a Linux app
This commit is contained in:
parent
df34ed9ffe
commit
e5b7a2c158
@ -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/";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user