Merge pull request #14 from altendky/avoid_unused_variable_fails_warnings

Avoid unused variable fails warnings
main
Jean-Philippe Aumasson 2019-09-10 07:55:58 +02:00 committed by GitHub
commit 211f8f763f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

5
test.c
View File

@ -46,7 +46,9 @@ size_t lengths[4] = {8, 16, 4, 8};
int main() { int main() {
uint8_t in[64], out[16], k[16]; uint8_t in[64], out[16], k[16];
int i; int i;
#ifndef GETVECTORS
int fails = 0; int fails = 0;
#endif
for (i = 0; i < 16; ++i) for (i = 0; i < 16; ++i)
k[i] = i; k[i] = i;
@ -98,8 +100,9 @@ int main() {
#else #else
if (!fails) if (!fails)
printf("OK\n"); printf("OK\n");
#endif
fails = 0; fails = 0;
#endif
} }
return 0; return 0;