From c93a3cf589841f11c7f724a98a371b7f25723ffc Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 28 Nov 2019 22:35:09 +0100 Subject: bearer-list: fix warnings with -Wshadow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mm-bearer-list.c: In function ‘mm_bearer_list_find_by_properties’: mm-bearer-list.c:151:56: error: declaration of ‘properties’ shadows a global declaration [-Werror=shadow] 151 | MMBearerProperties *properties) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ mm-bearer-list.c:42:20: note: shadowed declaration is here 42 | static GParamSpec *properties[PROP_LAST]; | ^~~~~~~~~~ --- src/mm-bearer-list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mm-bearer-list.c b/src/mm-bearer-list.c index 81e847a7..4ae446b5 100644 --- a/src/mm-bearer-list.c +++ b/src/mm-bearer-list.c @@ -147,13 +147,13 @@ mm_bearer_list_foreach (MMBearerList *self, } MMBaseBearer * -mm_bearer_list_find_by_properties (MMBearerList *self, - MMBearerProperties *properties) +mm_bearer_list_find_by_properties (MMBearerList *self, + MMBearerProperties *props) { GList *l; for (l = self->priv->bearers; l; l = g_list_next (l)) { - if (mm_bearer_properties_cmp (mm_base_bearer_peek_config (MM_BASE_BEARER (l->data)), properties)) + if (mm_bearer_properties_cmp (mm_base_bearer_peek_config (MM_BASE_BEARER (l->data)), props)) return g_object_ref (l->data); } -- cgit v1.2.3-70-g09d2