modem-helpers-qmi: fix warnings with -Wsign-compare
mm-modem-helpers-qmi.c: In function ‘mm_qmi_unique_id_to_firmware_unique_id’:
mm-modem-helpers-qmi.c:1653:19: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
1653 | for (i = 0; i < qmi_unique_id->len; i++) {
| ^
mm-modem-helpers-qmi.c:1679:11: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
1679 | if (i != qmi_unique_id->len)
| ^~
This commit is contained in:
@@ -1655,7 +1655,7 @@ gchar *
|
||||
mm_qmi_unique_id_to_firmware_unique_id (GArray *qmi_unique_id,
|
||||
GError **error)
|
||||
{
|
||||
gint i;
|
||||
guint i;
|
||||
gboolean expect_nul_byte = FALSE;
|
||||
|
||||
if (qmi_unique_id->len != EXPECTED_QMI_UNIQUE_ID_LENGTH) {
|
||||
|
||||
Reference in New Issue
Block a user