diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 10:13:35 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 15:18:35 +0100 |
commit | 1fa7e1260d8b3c588c65ecb0c0f5d589ab61b1be (patch) | |
tree | 13220c1ddde591c383615ca83ff7f9df2e75901b /cli/mmcli-modem-simple.c | |
parent | 1216e887168c580b5cd868dfa3f798ab90a43001 (diff) | |
download | ModemManager-1fa7e1260d8b3c588c65ecb0c0f5d589ab61b1be.tar.gz |
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-modem-simple.c')
-rw-r--r-- | cli/mmcli-modem-simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/mmcli-modem-simple.c b/cli/mmcli-modem-simple.c index facd3b0fe..35c85a8a7 100644 --- a/cli/mmcli-modem-simple.c +++ b/cli/mmcli-modem-simple.c @@ -101,7 +101,7 @@ mmcli_modem_simple_options_enabled (void) } static void -context_free (Context *ctx) +context_free (void) { if (!ctx) return; @@ -131,7 +131,7 @@ ensure_modem_simple (void) void mmcli_modem_simple_shutdown (void) { - context_free (ctx); + context_free (); } static void |