aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-sms.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 10:13:35 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commit1fa7e1260d8b3c588c65ecb0c0f5d589ab61b1be (patch)
tree13220c1ddde591c383615ca83ff7f9df2e75901b /cli/mmcli-sms.c
parent1216e887168c580b5cd868dfa3f798ab90a43001 (diff)
cli: fix warnings with -Wshadow
mmcli-manager.c: In function ‘context_free’: mmcli-manager.c:167:24: error: declaration of ‘ctx’ shadows a global declaration [-Werror=shadow] 167 | context_free (Context *ctx) | ~~~~~~~~~^~~ mmcli-manager.c:51:17: note: shadowed declaration is here 51 | static Context *ctx; | ^~~ ...
Diffstat (limited to 'cli/mmcli-sms.c')
-rw-r--r--cli/mmcli-sms.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/mmcli-sms.c b/cli/mmcli-sms.c
index 575e3544..a5fa45bf 100644
--- a/cli/mmcli-sms.c
+++ b/cli/mmcli-sms.c
@@ -123,7 +123,7 @@ mmcli_sms_options_enabled (void)
}
static void
-context_free (Context *ctx)
+context_free (void)
{
if (!ctx)
return;
@@ -142,7 +142,7 @@ context_free (Context *ctx)
void
mmcli_sms_shutdown (void)
{
- context_free (ctx);
+ context_free ();
}
static void
@@ -411,7 +411,6 @@ mmcli_sms_run_synchronous (GDBusConnection *connection)
if (store_in_storage_str) {
gboolean operation_result;
MMSmsStorage storage;
- GError *error = NULL;
storage = mm_common_get_sms_storage_from_string (store_in_storage_str, &error);
if (error) {