diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-20 15:56:22 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | 4fa669b894cd1ff5619e834a30ec3975d11d1505 (patch) | |
tree | cf8e4d7df5aefe46fed1790395f3000f04d1e49f /libqcdm | |
parent | 45c0015c0883bc8a65854d246070d5ec13bbcae8 (diff) |
test-qcdm-com: fix warnings with -Wdouble-promotion
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__)
| ^~~~~~~~~~~
Diffstat (limited to 'libqcdm')
-rw-r--r-- | libqcdm/tests/test-qcdm-com.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |