port-qmi: fix mm_port_qmi_release_client() prototype
GCC 13 got unhappy about using an int in place of an enum: ../src/mm-port-qmi.c:241:1: warning: conflicting types for ‘mm_port_qmi_release_client’ due to enum/integer mismatch; have ‘void(MMPortQmi *, QmiService, MMPortQmiFlag)’ {aka ‘void(struct _MMPortQmi *, QmiService, MMPortQmiFlag)’} [-Wenum-int-mismatch] 241 | mm_port_qmi_release_client (MMPortQmi *self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/mm-port-qmi.c:26: ../src/mm-port-qmi.h:113:10: note: previous declaration of ‘mm_port_qmi_release_client’ with type ‘void(MMPortQmi *, QmiService, guint)’ {aka ‘void(struct _MMPortQmi *, QmiService, unsigned int)’} 113 | void mm_port_qmi_release_client (MMPortQmi *self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:

committed by
Aleksander Morgado

parent
1da5b81fef
commit
fdb9c1f067
@@ -110,9 +110,9 @@ gboolean mm_port_qmi_allocate_client_finish (MMPortQmi *self,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
void mm_port_qmi_release_client (MMPortQmi *self,
|
||||
QmiService service,
|
||||
guint flag);
|
||||
void mm_port_qmi_release_client (MMPortQmi *self,
|
||||
QmiService service,
|
||||
MMPortQmiFlag flag);
|
||||
|
||||
QmiClient *mm_port_qmi_peek_client (MMPortQmi *self,
|
||||
QmiService service,
|
||||
|
Reference in New Issue
Block a user