diff options
| author | tylov <[email protected]> | 2023-07-15 23:20:16 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-07-15 23:20:16 +0200 |
| commit | e9121702a5d69624ef1e782e85a8f032e4f4e875 (patch) | |
| tree | 00e7770c9b775d98b518d9e3929b6ec4f71ad754 /misc/benchmarks | |
| parent | 23aebb77554bc43c929704e9f1c46dc4520024df (diff) | |
| download | STC-modified-e9121702a5d69624ef1e782e85a8f032e4f4e875.tar.gz STC-modified-e9121702a5d69624ef1e782e85a8f032e4f4e875.zip | |
Improved warning, and other enhancements in ccommon.h
Diffstat (limited to 'misc/benchmarks')
| -rw-r--r-- | misc/benchmarks/plotbench/cpque_benchmark.cpp | 2 | ||||
| -rw-r--r-- | misc/benchmarks/various/cspan_bench.c | 2 | ||||
| -rw-r--r-- | misc/benchmarks/various/rust_cmap.c | 2 | ||||
| -rw-r--r-- | misc/benchmarks/various/sso_bench.cpp | 2 | ||||
| -rw-r--r-- | misc/benchmarks/various/string_bench_STC.cpp | 2 | ||||
| -rw-r--r-- | misc/benchmarks/various/string_bench_STD.cpp | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/misc/benchmarks/plotbench/cpque_benchmark.cpp b/misc/benchmarks/plotbench/cpque_benchmark.cpp index 2d4c7a28..6c62ae3e 100644 --- a/misc/benchmarks/plotbench/cpque_benchmark.cpp +++ b/misc/benchmarks/plotbench/cpque_benchmark.cpp @@ -58,7 +58,7 @@ void stc_test() } -int main() +int main(void) { puts("STD P.QUEUE:"); std_test(); diff --git a/misc/benchmarks/various/cspan_bench.c b/misc/benchmarks/various/cspan_bench.c index 392c9d3f..e3997ff0 100644 --- a/misc/benchmarks/various/cspan_bench.c +++ b/misc/benchmarks/various/cspan_bench.c @@ -114,7 +114,7 @@ static void MDRanges_loop_over_joined(intptr_t state) printf("joined: %.1f ms, %f\n", 1000.0f * t / CLOCKS_PER_SEC, sum); } -int main() +int main(void) { for (int i = 0; i < nx * ny * nz; ++i) Vin[i] = i + 1.23; diff --git a/misc/benchmarks/various/rust_cmap.c b/misc/benchmarks/various/rust_cmap.c index abdb42b0..97047e0b 100644 --- a/misc/benchmarks/various/rust_cmap.c +++ b/misc/benchmarks/various/rust_cmap.c @@ -22,7 +22,7 @@ uint64_t romu_trio(uint64_t s[3]) { return xp; } -int main() +int main(void) { cmap_u64 m = {0}; diff --git a/misc/benchmarks/various/sso_bench.cpp b/misc/benchmarks/various/sso_bench.cpp index 6d3d107a..244c1291 100644 --- a/misc/benchmarks/various/sso_bench.cpp +++ b/misc/benchmarks/various/sso_bench.cpp @@ -112,7 +112,7 @@ int benchmark_lookup(C& container, const int n, const int strsize) { } #include <time.h> -int main() { +int main(void) { uint64_t seed = time(NULL); // 4321; int sum, n; diff --git a/misc/benchmarks/various/string_bench_STC.cpp b/misc/benchmarks/various/string_bench_STC.cpp index 319b0b19..a5dfd901 100644 --- a/misc/benchmarks/various/string_bench_STC.cpp +++ b/misc/benchmarks/various/string_bench_STC.cpp @@ -184,7 +184,7 @@ void benchmark( //const size_t MAX_LOOP = 1000000; const size_t MAX_LOOP = 2000; -int main() +int main(void) { c_auto (cvec_str, vec_string) c_auto (cvec_sv, vec_stringview) diff --git a/misc/benchmarks/various/string_bench_STD.cpp b/misc/benchmarks/various/string_bench_STD.cpp index 07934948..153ac02f 100644 --- a/misc/benchmarks/various/string_bench_STD.cpp +++ b/misc/benchmarks/various/string_bench_STD.cpp @@ -194,7 +194,7 @@ void benchmark( //const size_t MAX_LOOP = 1000000; const size_t MAX_LOOP = 2000; -int main() +int main(void) { std::vector<std::string> vec_shortstr; std::vector<std::string_view> vec_shortstrview; |
