From de950994b2238c2568602dd2a7ac40e827e3d8c6 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Tue, 14 Aug 2018 21:31:17 +0200 Subject: Change the way unused arguments are handled Use the __unused macro when declaring unused arguments in function definitions. Use main(void) instead of main(argc, argv) where appropriate. --- src/shell.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/shell.c b/src/shell.c index 114d089..e99766e 100644 --- a/src/shell.c +++ b/src/shell.c @@ -523,11 +523,8 @@ shell_cb_help(struct shell *shell, int argc, char *argv[]) } static void -shell_cb_history(struct shell *shell, int argc, char *argv[]) +shell_cb_history(struct shell *shell, int argc __unused, char *argv[] __unused) { - (void)argc; - (void)argv; - shell_history_print(shell_get_history(shell), shell); } -- cgit v1.2.3