summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-13 17:25:42 +0200
committerDavid Robillard <d@drobilla.net>2020-08-13 17:25:42 +0200
commit5139ab9b1ad4d58609f078f24bd2d013b9905cdb (patch)
tree33a06a1db331a8aa98bad5172024daa2160e075b
parent2a497984e25a6776a38d68eb7982c2bd8174e93b (diff)
downloadzix-5139ab9b1ad4d58609f078f24bd2d013b9905cdb.tar.gz
zix-5139ab9b1ad4d58609f078f24bd2d013b9905cdb.tar.bz2
zix-5139ab9b1ad4d58609f078f24bd2d013b9905cdb.zip
Fix Wno-implicit-int-float-conversion warning in benchmark
-rw-r--r--test/bench.h4
-rw-r--r--wscript1
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
diff --git a/wscript b/wscript
index aa93ef1..e127519 100644
--- a/wscript
+++ b/wscript
@@ -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',