aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>2019-09-10 07:55:58 +0200
committerGitHub <noreply@github.com>2019-09-10 07:55:58 +0200
commit211f8f763f3e9525dccb710abb551b6fd88bcc17 (patch)
tree3b4208c747cec4314df4e0cfaa912eb023e35cc1
parentd/experimental (diff)
parentRemove unneded #ifndef GETVECTORS check (diff)
downloadsiphash-211f8f763f3e9525dccb710abb551b6fd88bcc17.tar.gz
siphash-211f8f763f3e9525dccb710abb551b6fd88bcc17.tar.xz
Merge pull request #14 from altendky/avoid_unused_variable_fails_warnings
Avoid unused variable fails warnings
-rw-r--r--test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test.c b/test.c
index ab7ce9a..b6547a5 100644
--- a/test.c
+++ b/test.c
@@ -46,7 +46,9 @@ size_t lengths[4] = {8, 16, 4, 8};
int main() {
uint8_t in[64], out[16], k[16];
int i;
+#ifndef GETVECTORS
int fails = 0;
+#endif
for (i = 0; i < 16; ++i)
k[i] = i;
@@ -98,8 +100,9 @@ int main() {
#else
if (!fails)
printf("OK\n");
-#endif
+
fails = 0;
+#endif
}
return 0;