From 4fa669b894cd1ff5619e834a30ec3975d11d1505 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 20 Nov 2019 15:56:22 +0100 Subject: [PATCH] test-qcdm-com: fix warnings with -Wdouble-promotion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test-qcdm-com.c: In function ‘test_com_pilot_sets’: test-qcdm-com.c:1085:59: warning: implicit conversion from ‘float’ to ‘double’ when passing argument to function [-Wdouble-promotion] 1085 | g_message (" EC/IO %d (%.1f dB)", ecio, db); | ^~ /usr/include/glib-2.0/glib/gmessages.h:333:32: note: in definition of macro ‘g_message’ 333 | __VA_ARGS__) | ^~~~~~~~~~~ --- libqcdm/tests/test-qcdm-com.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libqcdm/tests/test-qcdm-com.c b/libqcdm/tests/test-qcdm-com.c index d765b1d7..81679157 100644 --- a/libqcdm/tests/test-qcdm-com.c +++ b/libqcdm/tests/test-qcdm-com.c @@ -1082,7 +1082,7 @@ test_com_pilot_sets (void *f, void *data) &ecio, &db); g_message (" %d: PN offset %d", i, pn_offset); - g_message (" EC/IO %d (%.1f dB)", ecio, db); + g_message (" EC/IO %d (%.1lf dB)", ecio, (double)db); } num = 0;