gcc: fix warnings (#156)

This commit is contained in:
Randy
2020-08-04 18:57:10 +02:00
committed by GitHub
parent 7976ac78f2
commit a9b06e4b35
3 changed files with 15 additions and 9 deletions

View File

@@ -16,6 +16,10 @@
# define _CRT_SECURE_NO_WARNINGS /* for windows */
#endif
#ifndef _GNU_SOURCE
# define _GNU_SOURCE /* for drand48() */
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View File

@@ -18,6 +18,8 @@ main(int argc, const char * argv[]) {
test_status_t st;
int32_t i, count, passed, failed, maxlen;
double start, end, elapsed, total;
(void)argc;
(void)argv;
passed = failed = maxlen = 0;
total = 0.0;