diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-05 05:00:44 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-05 05:00:44 +0100 |
commit | 4e5cdcd262769148e5a01ce7c440eddf9ebe34d5 (patch) | |
tree | 6745f48f933f20cd926d5b1692cf351dee58497f /src | |
parent | 691adcce8c2b23af4d0ed855ac7003bda0c8a171 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/Ninja.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Ninja.cpp b/src/Ninja.cpp index 3b3356b..00d740d 100644 --- a/src/Ninja.cpp +++ b/src/Ninja.cpp @@ -47,6 +47,8 @@ namespace ninja switch(argType) { + case NinjaArg::Type::NONE: + break; case NinjaArg::Type::VALUE: { result += escape_arg(arg.arg); @@ -93,7 +95,7 @@ namespace ninja if(!isAlpha(name[0]) && name[0] != '_') return false; - for(int i = 1; i < name.size(); ++i) + for(size_t i = 1; i < name.size(); ++i) { if(!isAlnum(name[i]) && name[i] != '_') return false; @@ -142,9 +144,9 @@ namespace ninja } NinjaRule::NinjaRule(NinjaBuildFile *_buildFile, const std::string &_name, const std::string &_command) : - buildFile(_buildFile), name(_name), - command(_command) + command(_command), + buildFile(_buildFile) { assert(buildFile); } |