diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-05-19 13:04:51 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-05-19 13:44:23 +0200 |
commit | 71d8bb2ec854e43c56d77c87f80c40807e8f8457 (patch) | |
tree | 2b1e7ffa455e2523eb5ec382b64b16f476854dad /src/mm-log.c | |
parent | ffbbec4a0d9a8a19f66b986db6534a10c3f973b4 (diff) |
iface-modem-messaging: avoid cast-align errors
We can safely cast the data in a GArray to gpointer first, and then
to the pointer type we require.
mm-iface-modem-messaging.c: In function 'load_supported_storages_ready':
mm-iface-modem-messaging.c:1154:53: error: cast increases required alignment of target type [-Werror=cast-align]
mem1 = mm_common_build_sms_storages_string ((MMSmsStorage *)storage_ctx->supported_mem1->data,
^
mm-iface-modem-messaging.c:1156:53: error: cast increases required alignment of target type [-Werror=cast-align]
mem2 = mm_common_build_sms_storages_string ((MMSmsStorage *)storage_ctx->supported_mem2->data,
^
mm-iface-modem-messaging.c:1158:53: error: cast increases required alignment of target type [-Werror=cast-align]
mem3 = mm_common_build_sms_storages_string ((MMSmsStorage *)storage_ctx->supported_mem3->data,
^
Diffstat (limited to 'src/mm-log.c')
0 files changed, 0 insertions, 0 deletions