diff options
author | mitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-01-22 19:21:39 +0000 |
---|---|---|
committer | mitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-01-22 19:21:39 +0000 |
commit | 4d04a15a077f5e210efdb244880e043852730323 (patch) | |
tree | bd9f5f90bd893ea5ee87ca4aa32b71c497939c73 /ACE/tests/ARGV_Test.cpp | |
parent | f2ea16ca30201642139575c55d40a0035d476e0b (diff) | |
download | ATCD-4d04a15a077f5e210efdb244880e043852730323.tar.gz |
ChangeLogTag: Thu Jan 22 19:20:06 UTC 2009 Adam Mitz <mitza@ociweb.com>
Diffstat (limited to 'ACE/tests/ARGV_Test.cpp')
-rw-r--r-- | ACE/tests/ARGV_Test.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ACE/tests/ARGV_Test.cpp b/ACE/tests/ARGV_Test.cpp index 75e3d3a879d..eabb48960df 100644 --- a/ACE/tests/ARGV_Test.cpp +++ b/ACE/tests/ARGV_Test.cpp @@ -182,11 +182,17 @@ test_argv_buf (void) static int test_argv_quotes (void) { - const ACE_TCHAR *argv[] = { ACE_TEXT ("first without quotes"), - ACE_TEXT ("'second in single quotes'"), - ACE_TEXT ("\"third in double quotes\""), - 0 - }; + const ACE_TCHAR *argv_const[] = { ACE_TEXT ("first without quotes"), + ACE_TEXT ("'second in single quotes'"), + ACE_TEXT ("\"third in double quotes\""), + 0 + }; + ACE_TCHAR **argv = const_cast<ACE_TCHAR **> (argv_const); + // The convoluted argv definition is to silence warnings from gcc 4.3, which + // warns if the string-literals are not assigned to const char* and also + // warns if the const char*[] is passed to the ACE_ARGV constructor as in + // "args3" below. + int argc = 3; // (argc, argv) |