aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/cryptobox.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-07 09:34:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-07 09:45:16 +0100
commitc207930dc64a680cc9a1ae9075e66f9d963e32e4 (patch)
tree622d707a9f57dc2cd80d7ae85ca476c05960be2d /src/libcryptobox/cryptobox.c
parent6970374fc3e1dca0f7a428470149e3952079cc61 (diff)
downloadrspamd-c207930dc64a680cc9a1ae9075e66f9d963e32e4.tar.gz
rspamd-c207930dc64a680cc9a1ae9075e66f9d963e32e4.zip
[Minor] Fix various warnings
Diffstat (limited to 'src/libcryptobox/cryptobox.c')
-rw-r--r--src/libcryptobox/cryptobox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index d8f5459d3..1dcd18838 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -245,6 +245,8 @@ rspamd_cryptobox_test_instr (gint instr)
signal (SIGILL, old_handler);
#endif
+ (void)rd; /* Silence warning */
+
/* We actually never return here if SIGILL has been caught */
return ok == 1;
}
@@ -354,6 +356,8 @@ rspamd_cryptobox_init (void)
case CPUID_RDRAND:
rspamd_printf_gstring (buf, "rdrand, ");
break;
+ default:
+ break; /* Silence warning */
}
}
}