Author: sebor
Date: Thu Jan 5 16:41:17 2006
New Revision: 366362
URL: http://svn.apache.org/viewcvs?rev=366362&view=rev
Log:
2006-01-05 Martin Sebor <[EMAIL PROTECTED]>
* atomic_add.cpp [!_RWSTD_REENTRANT] (run_test): Eliminated gcc errors
and -Wunused warnings in conditionally compiled code.
* atomic_xchg.cpp: Same.
Modified:
incubator/stdcxx/trunk/tests/support/atomic_add.cpp
incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp
Modified: incubator/stdcxx/trunk/tests/support/atomic_add.cpp
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/support/atomic_add.cpp?rev=366362&r1=366361&r2=366362&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/support/atomic_add.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/atomic_add.cpp Thu Jan 5 16:41:17 2006
@@ -209,11 +209,6 @@
{
static const char* const tname = rw_any_t (intT ()).type_name ();
- static const char* const fun =
- inc < 0 ? "__rw_atomic_predecrement"
- : inc > 0 ? ":__rw_atomic_preincrement"
- : "__rw_atomic_pre{in,de}crement";
-
if (!rw_enabled (tname)) {
rw_note (0, 0, 0, "%s test disabled", tname);
return;
@@ -221,6 +216,11 @@
#if defined (_RWSTD_REENTRANT)
+ static const char* const fun =
+ inc < 0 ? "__rw_atomic_predecrement"
+ : inc > 0 ? ":__rw_atomic_preincrement"
+ : "__rw_atomic_pre{in,de}crement";
+
rw_info (0, 0, 0, "__rw::%s (%s&): %d iterations in %d threads",
fun, tname, rw_opt_nloops, rw_opt_nthreads);
@@ -280,7 +280,6 @@
#else // if !defined (_RWSTD_REENTRANT)
- _RWSTD_UNUSED (t);
_RWSTD_UNUSED (tag);
_RWSTD_UNUSED (inc);
Modified: incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp?rev=366362&r1=366361&r2=366362&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp Thu Jan 5 16:41:17
2006
@@ -231,7 +231,6 @@
void run_test (intT, thr_args_base::tag_t tag)
{
static const char* const tname = rw_any_t (intT ()).type_name ();
- static const char* const fun = "__rw_atomic_exchange";
if (!rw_enabled (tname)) {
rw_note (0, 0, 0, "%s test disabled", tname);
@@ -240,6 +239,8 @@
#ifdef _RWSTD_REENTRANT
+ static const char* const fun = "__rw_atomic_exchange";
+
rw_info (0, 0, 0, "__rw::%s (%s&, %2$s): %d iterations in %d threads",
fun, tname, rw_opt_nloops, rw_opt_nthreads);
@@ -305,7 +306,6 @@
#else // if !defined (_RWSTD_REENTRANT)
- _RWSTD_UNUSED (t);
_RWSTD_UNUSED (tag);
#endif // _RWSTD_REENTRANT