diff --git a/spectrum_manager/src/methods.cpp b/spectrum_manager/src/methods.cpp index 8cf5ddf799680423988dad165c282ca6c140ce21..a0723cb951dbc317ed7b66768c7e90b629009e31 100644 --- a/spectrum_manager/src/methods.cpp +++ b/spectrum_manager/src/methods.cpp @@ -43,7 +43,7 @@ std::string searchForBinary(const std::string &binary) { if (env_path != NULL) { std::string buffer = ""; - for (int s = 0; s < strlen(env_path); s++) { + for (unsigned s = 0; s < strlen(env_path); s++) { if (env_path[s] == ':') { path_list.insert(path_list.end(), std::string(buffer)); buffer = ""; @@ -619,7 +619,6 @@ std::vector show_list(ManagerConfig *config, bool show) { return list; } - bool found = false; directory_iterator end_itr; for (directory_iterator itr(p); itr != end_itr; ++itr) { if (is_regular(itr->path()) && extension(itr->path()) == ".cfg") {