summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew O'Doherty <andrew.odoherty@qt.io>2018-08-22 12:32:18 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2018-08-22 12:02:03 +0000
commit081ed0ba7c9a96a544d394611854f38660c88062 (patch)
tree045bf31558f7a37eb642d6cb0aba3ed74f0e42ef
parentf31e56d388b98dc82cd158aec6047e7b6f1c1c4f (diff)
fix compiler error in ubuntu with qt5.12 in ssl part
error: suggest parentheses around assignment used as truth value [-Werror=parentheses] Change-Id: If3e2512a366e00e9a70ae740039d9732d24ae48b Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r--src/knx/ssl/qknxcurve25519.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/knx/ssl/qknxcurve25519.cpp b/src/knx/ssl/qknxcurve25519.cpp
index 26f6f77..4d53a3c 100644
--- a/src/knx/ssl/qknxcurve25519.cpp
+++ b/src/knx/ssl/qknxcurve25519.cpp
@@ -336,7 +336,7 @@ QKnxCurve25519PrivateKey QKnxCurve25519PrivateKey::fromBytes(const QKnxByteArray
auto tmp = pkcs8 + ba; // PKCS #8 is a standard syntax for storing private key information
BIO *bio = nullptr;
- if (bio = q_BIO_new_mem_buf(reinterpret_cast<void *> (tmp.data()), tmp.size()))
+ if ((bio = q_BIO_new_mem_buf(reinterpret_cast<void *> (tmp.data()), tmp.size())))
key.d_ptr->m_evpPKey = q_d2i_PrivateKey_bio(bio, nullptr);
q_BIO_free(bio);