huawei: avoid cast-align errors
We can safely cast the data in a GArray to gpointer first, and then
to the pointer type we require.
huawei/mm-broadband-modem-huawei.c: In function 'set_current_bands':
huawei/mm-broadband-modem-huawei.c:916:50: error: cast increases required alignment of target type [-Werror=cast-align]
bands_string = mm_common_build_bands_string ((MMModemBand *)bands_array->data,
^
This commit is contained in:
@@ -913,7 +913,7 @@ set_current_bands (MMIfaceModem *self,
|
||||
|
||||
task = g_task_new (self, NULL, callback, user_data);
|
||||
|
||||
bands_string = mm_common_build_bands_string ((MMModemBand *)bands_array->data,
|
||||
bands_string = mm_common_build_bands_string ((MMModemBand *)(gpointer)bands_array->data,
|
||||
bands_array->len);
|
||||
|
||||
if (!bands_array_to_huawei (bands_array, &huawei_band)) {
|
||||
|
||||
Reference in New Issue
Block a user