From 4a308467e6faf6c0d09dde2494a91ad045ff074b Mon Sep 17 00:00:00 2001 From: Francesco Gatti Date: Tue, 14 Apr 2020 14:26:06 +0200 Subject: [PATCH] warning fix --- src/utils.cpp | 7 ++++--- tests/imuodom/imuodom.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index b196d1c..5186526 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -25,9 +25,10 @@ void downloadWeightsifDoNotExist(const std::string& input_bin, const std::string std::string wget_cmd = "wget " + weights_url + " -O " + test_folder + "/weights.zip"; std::string unzip_cmd = "unzip " + test_folder + "/weights.zip -d" + test_folder; std::string rm_cmd = "rm " + test_folder + "/weights.zip"; - system(wget_cmd.c_str()); - system(unzip_cmd.c_str()); - system(rm_cmd.c_str()); + int err = 0; + err = system(wget_cmd.c_str()); + err = system(unzip_cmd.c_str()); + err = system(rm_cmd.c_str()); } } diff --git a/tests/imuodom/imuodom.cpp b/tests/imuodom/imuodom.cpp index 98ab1be..5c73786 100644 --- a/tests/imuodom/imuodom.cpp +++ b/tests/imuodom/imuodom.cpp @@ -77,6 +77,6 @@ int main() { out1 += ImuNet.odim1.tot(); } - system("cat path.txt | gnuplot -p -e \"set datafile separator ' '; plot '-'\""); + int err = system("cat path.txt | gnuplot -p -e \"set datafile separator ' '; plot '-'\""); return ret_cudnn; }