mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Avoid "array decl needs an explicit size".
This commit is contained in:
1 parent
eefe590e04
commit
d7c910fd1b
3 files changed
+11
-6
No files matched your search
@@ -941,3 +941,7 @@ proc benches[] = {
|
|||||||
|
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int main(int argc, char** argv) {
|
||||||
|
return test_main(argc, argv, tests, benches);
|
||||||
|
}
|
||||||
@@ -780,3 +780,7 @@ proc benches[] = {
|
|||||||
|
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int main(int argc, char** argv) {
|
||||||
|
return test_main(argc, argv, tests, benches);
|
||||||
|
}
|
||||||
@@ -37,11 +37,6 @@ char fail_msg[65536] = {0};
|
|||||||
|
|
||||||
int tests_run = 0;
|
int tests_run = 0;
|
||||||
|
|
||||||
typedef void (*proc)();
|
|
||||||
|
|
||||||
proc benches[];
|
|
||||||
proc tests[];
|
|
||||||
|
|
||||||
const char* proc_filename;
|
const char* proc_filename;
|
||||||
const char* proc_funcname = "";
|
const char* proc_funcname = "";
|
||||||
|
|
||||||
@@ -107,7 +102,9 @@ void bench_finish(uint64_t reps, uint64_t n_bytes) {
|
|||||||
fflush(stdout);
|
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;
|
bool bench = false;
|
||||||
int proc_reps = 5;
|
int proc_reps = 5;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user