summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-04-05 10:26:23 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-06 12:54:19 +0200
commit494d4d36237f37c455f6689fca280ed75498403a (patch)
treea4441786b9dc656910ed32bafdb5da93b73145e5 /tests
parent6b20f4f6f46975eb5c0219e3b8a841a64643ce4b (diff)
Verious warnings generated by SunStudio fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwm.cpp2
-rw-r--r--tests/reqrep_device.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/hwm.cpp b/tests/hwm.cpp
index f93dcd9..6cd9a41 100644
--- a/tests/hwm.cpp
+++ b/tests/hwm.cpp
@@ -47,7 +47,7 @@ int XS_TEST_MAIN ()
// Try to send 10 messages. Only 4 should succeed.
for (int i = 0; i < 10; i++)
{
- int rc = xs_send (sc, NULL, 0, XS_DONTWAIT);
+ rc = xs_send (sc, NULL, 0, XS_DONTWAIT);
if (i < 4)
assert (rc == 0);
else
diff --git a/tests/reqrep_device.cpp b/tests/reqrep_device.cpp
index 54a9ed4..81960d9 100644
--- a/tests/reqrep_device.cpp
+++ b/tests/reqrep_device.cpp
@@ -101,7 +101,6 @@ int XS_TEST_MAIN ()
assert (rc == 0);
rc = xs_recvmsg (xreq, &msg, 0);
assert (rc >= 0);
- int rcvmore;
rc = xs_getsockopt (xreq, XS_RCVMORE, &rcvmore, &sz);
assert (rc == 0);
rc = xs_sendmsg (xrep, &msg, rcvmore ? XS_SNDMORE : 0);