Commit 33df3537 authored by xuebingbing's avatar xuebingbing

fix gnu编译器警告

parent 31e7cd43
...@@ -504,7 +504,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult) ...@@ -504,7 +504,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
//("jd_station_file", "JD 站心和校正,必须包含E0_UTM_JD:* N0_UTM_JD:* H0_UTM_JD:* 三对UTM 站心(偏移)信息, 可包含E_OFFSET:* N_OFFSET:* H_OFFSET:* 的校正信息", cxxopts::value<std::string>()); //("jd_station_file", "JD 站心和校正,必须包含E0_UTM_JD:* N0_UTM_JD:* H0_UTM_JD:* 三对UTM 站心(偏移)信息, 可包含E_OFFSET:* N_OFFSET:* H_OFFSET:* 的校正信息", cxxopts::value<std::string>());
boost::system::error_code sys_err_code; boost::system::error_code sys_err_code;
if (argsresult.count("jf_station_file") < 0) if (argsresult.count("jf_station_file") < 1)
{ {
std::cout << "ERROR: " << currentmode << " 未指定觉非站心文件" << std::endl; std::cout << "ERROR: " << currentmode << " 未指定觉非站心文件" << std::endl;
return -1; return -1;
...@@ -527,7 +527,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult) ...@@ -527,7 +527,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
return -1; return -1;
} }
if (argsresult.count("jd_station_file") < 0) if (argsresult.count("jd_station_file") < 1)
{ {
std::cout << "ERROR: " << currentmode << " 未指定京东站心文件" << std::endl; std::cout << "ERROR: " << currentmode << " 未指定京东站心文件" << std::endl;
return -1; return -1;
...@@ -555,7 +555,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult) ...@@ -555,7 +555,7 @@ int pcd2lasByStationFiles(const cxxopts::ParseResult& argsresult)
} }
temp = argsresult["lasfile"].as<std::string>(); temp = argsresult["lasfile"].as<std::string>();
if (argsresult.count("lasfile") < 0) if (argsresult.count("lasfile") < 1)
{ {
std::cout << "ERROR: " << currentmode << " 未指定输入las文件" << std::endl; std::cout << "ERROR: " << currentmode << " 未指定输入las文件" << std::endl;
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment