Remove variable only used for an assert

When compiled with -DNDEBUG, we get warnings about set-but-unused variables.
In general, it's not something we care about, but since removing those
variables arguably makes the code nicer, let's just to it in this case.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-03-28 09:03:06 +01:00
parent 4e494d17db
commit 10c353e1c5
5 changed files with 5 additions and 18 deletions
+1 -3
View File
@@ -7,12 +7,10 @@
#include "hexdecoct.h"
void initialize_libgcrypt(bool secmem) {
const char *p;
if (gcry_control(GCRYCTL_INITIALIZATION_FINISHED_P))
return;
p = gcry_check_version("1.4.5");
assert(p);
assert_se(gcry_check_version("1.4.5"));
/* Turn off "secmem". Clients which wish to make use of this
* feature should initialize the library manually */