diff options
Diffstat (limited to 'tests/ingen_bench.cpp')
-rw-r--r-- | tests/ingen_bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp index d840eea9..82fae78d 100644 --- a/tests/ingen_bench.cpp +++ b/tests/ingen_bench.cpp @@ -127,8 +127,8 @@ run(int argc, char** argv) const uint64_t t_end = clock.now_microseconds(); // Write log output - const std::unique_ptr<FILE, decltype(&fclose)> log{fopen(out_file.c_str(), "a"), - &fclose}; + const std::unique_ptr<FILE, int (*)(FILE*)> log{fopen(out_file.c_str(), "a"), + &fclose}; if (ftell(log.get()) == 0) { fprintf(log.get(), "# n_threads\trun_time\treal_time\n"); } |