mirror of
https://github.com/lucaspalomodevelop/autom.git
synced 2026-03-12 23:27:21 +00:00
resolve compile warnings
This commit is contained in:
parent
6691b5a5b3
commit
3760515ba8
4
.gitignore
vendored
4
.gitignore
vendored
@ -34,4 +34,6 @@
|
|||||||
*.out
|
*.out
|
||||||
*.app
|
*.app
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
|
test-scripts
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user