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;
| ^~~
...
This commit is contained in:
@@ -91,7 +91,7 @@ mmcli_modem_time_options_enabled (void)
|
||||
}
|
||||
|
||||
static void
|
||||
context_free (Context *ctx)
|
||||
context_free (void)
|
||||
{
|
||||
if (!ctx)
|
||||
return;
|
||||
@@ -126,7 +126,7 @@ ensure_modem_time (void)
|
||||
void
|
||||
mmcli_modem_time_shutdown (void)
|
||||
{
|
||||
context_free (ctx);
|
||||
context_free ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user