port-serial: fix warnings with -Wsign-compare

mm-port-serial.c: In function ‘_close_internal’:
  mm-port-serial.c:1464:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
   1464 |     for (i = 0; i < g_queue_get_length (self->priv->queue); i++) {
        |                   ^
This commit is contained in:
Aleksander Morgado
2020-01-30 19:09:52 +01:00
parent 0c16898c30
commit a812e06b96
+1 -1
View File
@@ -1372,7 +1372,7 @@ static void
_close_internal (MMPortSerial *self, gboolean force)
{
const char *device;
int i;
guint i;
g_return_if_fail (MM_IS_PORT_SERIAL (self));