diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-28 22:35:09 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | c93a3cf589841f11c7f724a98a371b7f25723ffc (patch) | |
tree | 9834fee44184705806a534b728c8cfccf8a68b98 /src/mm-bearer-list.c | |
parent | 71ee2e900d4c1e9af3f1fabb79de00c678a16c18 (diff) |
bearer-list: fix warnings with -Wshadow
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];
| ^~~~~~~~~~
Diffstat (limited to 'src/mm-bearer-list.c')
-rw-r--r-- | src/mm-bearer-list.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |