meson.build: add -Wdouble-promotion

This commit is contained in:
Max Kellermann 2020-09-22 20:24:23 +02:00
parent 6825e1144e
commit 85af4d6916
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ common_cxxflags = [
test_common_flags = [ test_common_flags = [
'-Wvla', '-Wvla',
'-Wdouble-promotion',
'-fvisibility=hidden', '-fvisibility=hidden',

View File

@ -41,7 +41,7 @@ DumpReplayGainTuple(const char *name, const ReplayGainTuple &tuple)
{ {
if (tuple.IsDefined()) if (tuple.IsDefined())
fprintf(stderr, "replay_gain[%s]: gain=%f peak=%f\n", fprintf(stderr, "replay_gain[%s]: gain=%f peak=%f\n",
name, tuple.gain, tuple.peak); name, (double)tuple.gain, (double)tuple.peak);
} }
static void static void