]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: fix unused variable warning
authorLoic Dachary <ldachary@redhat.com>
Thu, 12 Feb 2015 14:41:44 +0000 (15:41 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 13 Feb 2015 16:09:37 +0000 (17:09 +0100)
Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/msgr/test_async_driver.cc

index 91af54f79795bc9fdc0538a8b63d8c8f21f0acd0..3b4edcf23e507e4e88e628d928d31dfac019d7e5 100644 (file)
@@ -251,7 +251,7 @@ TEST(EventCenterTest, FileEventExpansion) {
   center.init(100);
   EventCallbackRef e(new FakeEvent());
   for (int i = 0; i < 10000; i++) {
-    int s = ::socket(AF_INET, SOCK_STREAM, 0);
+    (void)::socket(AF_INET, SOCK_STREAM, 0);
     center.create_file_event(i, EVENT_READABLE, e);
     sds.push_back(::socket(AF_INET, SOCK_STREAM, 0));
   }