From 38bc7ce3826226822e0580e2f66eda22d8172404 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sun, 13 Aug 2017 06:33:23 +0200 Subject: Silence clang warning in create_private_key(). If compiled with OpenSSL, clang emitted the warning "using the result of an assignment as a condition without parentheses". Putting parentheses around the assignment fixes this. --- src/lib/pubkey/pk_algs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/pubkey/pk_algs.cpp b/src/lib/pubkey/pk_algs.cpp index e696b5e74..743918923 100644 --- a/src/lib/pubkey/pk_algs.cpp +++ b/src/lib/pubkey/pk_algs.cpp @@ -276,7 +276,7 @@ create_private_key(const std::string& alg_name, if(provider.empty() || provider == "openssl") { std::unique_ptr pk; - if(pk = make_openssl_rsa_private_key(rng, rsa_bits)) + if((pk = make_openssl_rsa_private_key(rng, rsa_bits))) return pk; if(!provider.empty()) -- cgit v1.2.3