Gcrypt: Fix detection of lib if we use `-Werror`
Before this update detecting Libgcrypt would fail, if we treated
warnings as errors (`-Werror`). The cause of this problem was that
compiling `compile_gcrypt.cpp` produced a warning about an unused
variable.
#include <gcrypt.h>
+gcry_cipher_hd_t nothing ()
+{
+ gcry_cipher_hd_t elektraCryptoHandle = NULL;
+ return elektraCryptoHandle;
+}
+
int main (void)
{
- gcry_cipher_hd_t elektraCryptoHandle;
+ nothing ();
return 0;
}
