From e5b7a2c158cd3dcdf6970c45af213581da996df7 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 10 Jun 2015 14:12:11 +0300 Subject: [PATCH] Warning fix in a Linux app --- libuavcan_drivers/linux/apps/uavcan_dynamic_node_id_server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/";