summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Vershilov <qnikst@gentoo.org>2013-09-14 04:40:40 +0000
committerAlexander Vershilov <qnikst@gentoo.org>2013-09-14 04:40:40 +0000
commit675f7ce433aa7944fe664bf3fbec4d0f255fbca9 (patch)
treea5e3525befa83f720fd0e77fd609ac35f38da1f1 /net-libs/zeromq/files
parentWhitespace (diff)
downloadgentoo-2-675f7ce433aa7944fe664bf3fbec4d0f255fbca9.tar.gz
gentoo-2-675f7ce433aa7944fe664bf3fbec4d0f255fbca9.tar.bz2
gentoo-2-675f7ce433aa7944fe664bf3fbec4d0f255fbca9.zip
fix bug #483318, thanks to Joerg Neikes
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 0xEAD50D64D8D3571A!)
Diffstat (limited to 'net-libs/zeromq/files')
-rw-r--r--net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch b/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch
new file mode 100644
index 000000000000..8307cf12bdff
--- /dev/null
+++ b/net-libs/zeromq/files/zeromq-3.2.3-unused-variable.patch
@@ -0,0 +1,30 @@
+diff -Nur zeromq-3.2.3/tests/test_disconnect_inproc.cpp zeromq-3.2.3a/tests/test_disconnect_inproc.cpp
+--- zeromq-3.2.3/tests/test_disconnect_inproc.cpp 2013-09-12 16:45:38.204739478 +0200
++++ zeromq-3.2.3a/tests/test_disconnect_inproc.cpp 2013-09-12 17:13:06.487156998 +0200
+@@ -40,13 +40,13 @@
+ zmq_msg_t msg;
+ zmq_msg_init (&msg);
+ zmq_msg_recv (&msg, pubSocket, 0);
+- int msgSize = zmq_msg_size(&msg);
+ char* buffer = (char*)zmq_msg_data(&msg);
+
+ if (buffer[0] == 0) {
+ assert(isSubscribed);
+ isSubscribed = false;
+- } else {
++ }
++ else {
+ assert(!isSubscribed);
+ isSubscribed = true;
+ }
+@@ -64,10 +64,6 @@
+ zmq_msg_t msg;
+ zmq_msg_init (&msg);
+ zmq_msg_recv (&msg, subSocket, 0);
+- int msgSize = zmq_msg_size(&msg);
+- char* buffer = (char*)zmq_msg_data(&msg);
+-
+-
+ zmq_getsockopt (subSocket, ZMQ_RCVMORE, &more, &more_size);
+ zmq_msg_close (&msg);
+