diff options
author | David Robillard <d@drobilla.net> | 2020-08-13 17:25:42 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-13 17:25:42 +0200 |
commit | 5139ab9b1ad4d58609f078f24bd2d013b9905cdb (patch) | |
tree | 33a06a1db331a8aa98bad5172024daa2160e075b | |
parent | 2a497984e25a6776a38d68eb7982c2bd8174e93b (diff) | |
download | zix-5139ab9b1ad4d58609f078f24bd2d013b9905cdb.tar.gz zix-5139ab9b1ad4d58609f078f24bd2d013b9905cdb.tar.bz2 zix-5139ab9b1ad4d58609f078f24bd2d013b9905cdb.zip |
Fix Wno-implicit-int-float-conversion warning in benchmark
-rw-r--r-- | test/bench.h | 4 | ||||
-rw-r--r-- | wscript | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/bench.h b/test/bench.h index 3575633..716601b 100644 --- a/test/bench.h +++ b/test/bench.h @@ -22,8 +22,8 @@ static inline double elapsed_s(const struct timespec* start, const struct timespec* end) { - return ( (end->tv_sec - start->tv_sec) - + ((end->tv_nsec - start->tv_nsec) * 0.000000001) ); + return ( (double)(end->tv_sec - start->tv_sec) + + ((double)(end->tv_nsec - start->tv_nsec) * 0.000000001) ); } static inline struct timespec @@ -45,7 +45,6 @@ def configure(conf): '-Wno-cast-align', '-Wno-format-nonliteral', '-Wno-implicit-int-conversion', - '-Wno-implicit-int-float-conversion', '-Wno-padded', '-Wno-reserved-id-macro', '-Wno-shorten-64-to-32', |