mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-18 16:46:18 -04:00
fixed warnings
This commit is contained in:
parent
6018b0ba68
commit
4041ce34f4
@ -36,7 +36,7 @@ void parseOptions(int argc, char** argv)
|
||||
{
|
||||
try {
|
||||
|
||||
CmdLine cmd(argv[0], "this is a message", "0.99" );
|
||||
CmdLine cmd("this is a message", ' ', "0.99" );
|
||||
|
||||
//
|
||||
// Define arguments
|
||||
@ -85,7 +85,7 @@ void parseOptions(int argc, char** argv)
|
||||
_utest = utest.getValue();
|
||||
|
||||
vector<string> v = mtest.getValue();
|
||||
for ( int i = 0; i < v.size(); i++ )
|
||||
for ( int i = 0; (unsigned int)i < v.size(); i++ )
|
||||
cout << i << " " << v[i] << endl;
|
||||
|
||||
} catch ( ArgException e )
|
||||
|
@ -71,11 +71,11 @@ void parseOptions(int argc, char** argv)
|
||||
_ztest = ztest.getValue();
|
||||
|
||||
vector<int> vi = itest.getValue();
|
||||
for ( int i = 0; i < vi.size(); i++ )
|
||||
for ( int i = 0; (unsigned int)i < vi.size(); i++ )
|
||||
cout << "[-i] " << i << " " << vi[i] << endl;
|
||||
|
||||
vector<string> v = mtest.getValue();
|
||||
for ( int i = 0; i < v.size(); i++ )
|
||||
for ( int i = 0; (unsigned int)i < v.size(); i++ )
|
||||
cout << "[ ] " << i << " " << v[i] << endl;
|
||||
|
||||
} catch ( ArgException e )
|
||||
|
Loading…
x
Reference in New Issue
Block a user