Hotfix: build error by warning on 64bit arch 25/62425/1 accepted/tizen/common/20160317.155640 accepted/tizen/ivi/20160318.111629 accepted/tizen/mobile/20160318.111115 accepted/tizen/tv/20160318.111240 accepted/tizen/wearable/20160318.111325 submit/tizen/20160316.050624
authorKyungwook Tak <k.tak@samsung.com>
Wed, 16 Mar 2016 04:50:35 +0000 (13:50 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Wed, 16 Mar 2016 04:50:35 +0000 (13:50 +0900)
unused return value of BIO_reset

Change-Id: If03759de08a0f5e67d8e344f0026032b3f16ccf3
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
src/manager/common/key-impl.cpp

index a7978c3..ab5308d 100644 (file)
@@ -103,7 +103,8 @@ KeyImpl::KeyImpl(const RawBuffer &buf, const Password &password) :
     }
 
     if (!pkey && buf[0] != '-') {
-        BIO_reset(bio.get());
+        /* cast to void of return val to ignore unused-value warning */
+        static_cast<void>(BIO_reset(bio.get()));
         BIO_write(bio.get(), buf.data(), buf.size());
         pkey = d2i_PrivateKey_bio(bio.get(), nullptr);
         isPrivate = true;
@@ -111,7 +112,8 @@ KeyImpl::KeyImpl(const RawBuffer &buf, const Password &password) :
     }
 
     if (!pkey && buf[0] == '-') {
-        BIO_reset(bio.get());
+        /* cast to void of return val to ignore unused-value warning */
+        static_cast<void>(BIO_reset(bio.get()));
         BIO_write(bio.get(), buf.data(), buf.size());
         pkey = PEM_read_bio_PUBKEY(bio.get(), nullptr, passcb, const_cast<Password*>(&password));
         isPrivate = false;
@@ -119,7 +121,8 @@ KeyImpl::KeyImpl(const RawBuffer &buf, const Password &password) :
     }
 
     if (!pkey && buf[0] == '-') {
-        BIO_reset(bio.get());
+        /* cast to void of return val to ignore unused-value warning */
+        static_cast<void>(BIO_reset(bio.get()));
         BIO_write(bio.get(), buf.data(), buf.size());
         pkey = PEM_read_bio_PrivateKey(bio.get(), nullptr, passcb, const_cast<Password*>(&password));
         isPrivate = true;