mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Resolve most compiler warnings
This commit is contained in:
parent
b8105812fc
commit
7a64c19641
8 changed files with 34 additions and 34 deletions
|
@ -443,7 +443,7 @@ void CLI::analyze (bool parse /* = true */, bool strict /* = false */)
|
|||
// For propagation.
|
||||
_strict = strict;
|
||||
|
||||
for (int i = 0; i < _original_args.size (); ++i)
|
||||
for (unsigned int i = 0; i < _original_args.size (); ++i)
|
||||
{
|
||||
std::string raw = _original_args[i];
|
||||
A a ("arg", raw);
|
||||
|
@ -2362,7 +2362,7 @@ bool CLI::isName (const std::string& raw) const
|
|||
{
|
||||
if (raw != "")
|
||||
{
|
||||
for (int i = 0; i < raw.length (); ++i)
|
||||
for (unsigned int i = 0; i < raw.length (); ++i)
|
||||
{
|
||||
if (i == 0 && ! Lexer::isIdentifierStart (raw[i]))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue