Subject: [PATCH] Tell C compiler we don't care about return code of libssh2_init

[PATCH] Tell C compiler we don't care about return code of libssh2_init

From: Steven Dake <sdake_at_redhat.com>
Date: Thu, 8 Mar 2012 00:35:29 -0700

The call of libssh2_init returns a return code, but nothing could be done
within the _libssh2_init_if_needed execution path.

Signed-off-by: Steven Dake <sdake_at_redhat.com>

---
 src/global.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/global.c b/src/global.c
index 409e8e8..dc45e70 100644
--- a/src/global.c
+++ b/src/global.c
@@ -74,5 +74,5 @@ void
 _libssh2_init_if_needed(void)
 {
     if (_libssh2_initialized == 0)
-        libssh2_init (0);
+        (void)libssh2_init (0);
 }
-- 
1.7.7.6
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-03-08