fixed warnings

This commit is contained in:
mes5k 2003-12-22 01:58:57 +00:00
parent 6018b0ba68
commit 4041ce34f4
2 changed files with 4 additions and 4 deletions

View File

@ -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 )

View File

@ -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 )