diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-21 10:24:23 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-21 10:37:38 +0100 |
commit | 508fa8185ae09dbb81007ce1db76e2a7243aa44d (patch) | |
tree | 72cdff8835424c3c266e7ee2e1d5bd04cafae8f6 /build-aux | |
parent | 39cafe5652dccd449d192d7594f5d1a89a1a0a32 (diff) |
build-aux: fix warnings with -Wdouble-promotion
qmi-nas.c: In function ‘qmi_message_nas_get_cell_location_info_output_umts_info_neighboring_lte_get_printable’:
qmi-nas.c:27348:58: warning: implicit conversion from ‘gfloat’ {aka ‘float’} to ‘double’ when passing argument to function [-Wdouble-promotion]
27348 | g_string_append_printf (printable, "%f", tmp);
| ^~~
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/qmi-codegen/VariableInteger.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build-aux/qmi-codegen/VariableInteger.py b/build-aux/qmi-codegen/VariableInteger.py index b24d83a..a498b05 100644 --- a/build-aux/qmi-codegen/VariableInteger.py +++ b/build-aux/qmi-codegen/VariableInteger.py @@ -187,7 +187,8 @@ class VariableInteger(Variable): elif self.private_format == 'gint64': common_format = '%" G_GINT64_FORMAT "' elif self.private_format in ('gfloat', 'gdouble'): - common_format = '%f' + common_format = '%lf' + common_cast = '(gdouble)' translations = { 'lp' : line_prefix, 'private_format' : self.private_format, |