From 85af4d6916bf9d2bb7341fbb3c3d2cd4fbd835fa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 22 Sep 2020 20:24:23 +0200 Subject: [PATCH] meson.build: add -Wdouble-promotion --- meson.build | 1 + test/dump_rva2.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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