stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r604090 - /incubator/stdcxx/trunk/tests/localization/22.locale.globals.mt.cpp
Date Fri, 14 Dec 2007 02:49:59 GMT
Author: sebor
Date: Thu Dec 13 18:49:58 2007
New Revision: 604090

URL: http://svn.apache.org/viewvc?rev=604090&view=rev
Log:
2007-12-13  Martin Sebor  <sebor@roguewave.com>

	* 22.locale.globals.mt.cpp (use_facet_loop): Renamed a loop control
	variable to silence gcc -Wshadow warning: declaration of `size_t i'
	shadows a parameter.
	(run_test): Corrected a formatting directive to print a plain int.

Modified:
    incubator/stdcxx/trunk/tests/localization/22.locale.globals.mt.cpp

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.globals.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.globals.mt.cpp?rev=604090&r1=604089&r2=604090&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.globals.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.globals.mt.cpp Thu Dec 13 18:49:58
2007
@@ -288,9 +288,9 @@
 
             const std::size_t nbases = sizeof bases / sizeof *bases;
 
-            for (std::size_t i = 0; i != nbases; ++i) {
-                RW_ASSERT (bases [i] != 0);
-                RW_ASSERT (bases [i] == derived [i]);
+            for (std::size_t j = 0; j != nbases; ++j) {
+                RW_ASSERT (bases [j] != 0);
+                RW_ASSERT (bases [j] == derived [j]);
             }
         }
         else if (0 == opt_no_exceptions) {
@@ -361,9 +361,9 @@
 
             const std::size_t nbases = sizeof bases / sizeof *bases;
 
-            for (std::size_t i = 0; i != nbases; ++i) {
-                RW_ASSERT (bases [i] != 0);
-                RW_ASSERT (bases [i] == derived [i]);
+            for (std::size_t j = 0; j != nbases; ++j) {
+                RW_ASSERT (bases [j] != 0);
+                RW_ASSERT (bases [j] == derived [j]);
             }
         }
         else if (0 == opt_no_exceptions) {
@@ -499,7 +499,7 @@
 
     rw_info (0, 0, 0,
              "testing std::locale globals with %d thread%{?}s%{;}, "
-             "%zu iteration%{?}s%{;} each, in %zu locales { %{ .*A@} }",
+             "%d iteration%{?}s%{;} each, in %zu locales { %{ .*A@} }",
              opt_nthreads, 1 != opt_nthreads,
              opt_nloops, 1 != opt_nloops,
              nlocales, int (nlocales), "%#s", locales);



Mime
View raw message