diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-05-19 13:10:26 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-05-19 13:44:23 +0200 |
commit | 301b6f0a64d358706c15efff6bca676c4213c9a5 (patch) | |
tree | dbef144482679d8a2fd8c33fd8e06b3eda57c383 /src/mm-log-object.c | |
parent | c7dee320c004bf9508e54555d0ad9f727b449705 (diff) |
plugins,tests: avoid cast-align errors
We can safely cast the data in a GArray to gpointer first, and then
to the pointer type we require.
tests/test-helpers.c: In function 'mm_test_helpers_compare_bands':
tests/test-helpers.c:41:47: error: cast increases required alignment of target type [-Werror=cast-align]
bands_str = mm_common_build_bands_string ((MMModemBand *)(bands->data), bands->len);
^
tests/test-helpers.c:46:56: error: cast increases required alignment of target type [-Werror=cast-align]
expected_bands_str = mm_common_build_bands_string ((MMModemBand *)(expected_bands_array->data), expected_bands_array->len);
^
Diffstat (limited to 'src/mm-log-object.c')
0 files changed, 0 insertions, 0 deletions