Avoid "array decl needs an explicit size".

This commit is contained in:
Nigel Tao committed 2017-11-03 12:11:21 +11:00
1 parent eefe590e04
commit d7c910fd1b
3 files changed
+11 -6

No files matched your search

+4
View File
@@ -941,3 +941,7 @@ proc benches[] = {
NULL,
};
int main(int argc, char** argv) {
return test_main(argc, argv, tests, benches);
}
+4
View File
@@ -780,3 +780,7 @@ proc benches[] = {
NULL,
};
int main(int argc, char** argv) {
return test_main(argc, argv, tests, benches);
}
+3 -6
View File
@@ -37,11 +37,6 @@ char fail_msg[65536] = {0};
int tests_run = 0;
typedef void (*proc)();
proc benches[];
proc tests[];
const char* proc_filename;
const char* proc_funcname = "";
@@ -107,7 +102,9 @@ void bench_finish(uint64_t reps, uint64_t n_bytes) {
fflush(stdout);
}
int main(int argc, char** argv) {
typedef void (*proc)();
int test_main(int argc, char** argv, proc* tests, proc* benches) {
bool bench = false;
int proc_reps = 5;