resolve compile warnings

This commit is contained in:
lucaspalomodevelop 2025-01-22 19:52:07 +01:00
parent 6691b5a5b3
commit 3760515ba8
2 changed files with 5 additions and 3 deletions

4
.gitignore vendored
View File

@ -34,4 +34,6 @@
*.out *.out
*.app *.app
.vscode .vscode
test-scripts

View File

@ -65,7 +65,7 @@ automScript parse(const std::string filecontent)
std::string line, content, script; std::string line, content, script;
int braceCount = 0; int braceCount = 0;
bool isSettings = false; bool isSettings = false;
bool start = false; // bool start = false;
while (std::getline(file, line)) while (std::getline(file, line))
{ {
for (char c : line) for (char c : line)
@ -472,7 +472,7 @@ void addScript(int argc, char *argv[])
{ {
std::cout << "Which directory do you want to add the script to?" << std::endl; std::cout << "Which directory do you want to add the script to?" << std::endl;
auto search_dirs = settings.value["search_dirs"]; auto search_dirs = settings.value["search_dirs"];
for (int i = 0; i < search_dirs.size(); i++) for (std::vector<std::string>::size_type i = 0; i < search_dirs.size(); i++)
{ {
std::cout << i << " " << search_dirs[i] << std::endl; std::cout << i << " " << search_dirs[i] << std::endl;
} }