summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build1
-rw-r--r--test/dump_rva2.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index c245c4562..98318db20 100644
--- a/meson.build
+++ b/meson.build
@@ -50,6 +50,7 @@ common_cxxflags = [
test_common_flags = [
'-Wvla',
+ '-Wdouble-promotion',
'-fvisibility=hidden',
diff --git a/test/dump_rva2.cxx b/test/dump_rva2.cxx
index bd09edab2..9d07bfc26 100644
--- a/test/dump_rva2.cxx
+++ b/test/dump_rva2.cxx
@@ -41,7 +41,7 @@ DumpReplayGainTuple(const char *name, const ReplayGainTuple &tuple)
{
if (tuple.IsDefined())
fprintf(stderr, "replay_gain[%s]: gain=%f peak=%f\n",
- name, tuple.gain, tuple.peak);
+ name, (double)tuple.gain, (double)tuple.peak);
}
static void