diff options
author | Paul Selkirk <paul@psgd.org> | 2017-10-11 21:26:27 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2017-10-11 21:26:27 -0400 |
commit | b159bf0bb24a99c7d3ff1b3855f840add63198e5 (patch) | |
tree | 9e3861da94bb69412025ef51db5a686d717d7a84 /projects/cli-test/mgmt-test.c | |
parent | 4026cce22d330d3b9c4b218dd2e19d4f60412e05 (diff) |
Cleanup 'unused parameter' warnings, a couple of which are actual coding errors.
Diffstat (limited to 'projects/cli-test/mgmt-test.c')
-rw-r--r-- | projects/cli-test/mgmt-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/projects/cli-test/mgmt-test.c b/projects/cli-test/mgmt-test.c index 1a22996..9b9972d 100644 --- a/projects/cli-test/mgmt-test.c +++ b/projects/cli-test/mgmt-test.c @@ -52,6 +52,8 @@ static int cmd_test_sdram(struct cli_def *cli, const char *command, char *argv[] // run external memory initialization sequence int ok, num_cycles = 1, i, test_completed; + command = command; + if (argc == 1) { num_cycles = strtol(argv[0], NULL, 0); if (num_cycles > 100) num_cycles = 100; @@ -106,6 +108,8 @@ static int cmd_test_fmc(struct cli_def *cli, const char *command, char *argv[], { int i, num_cycles = 1, num_rounds = 100000; + command = command; + if (argc >= 1) { num_cycles = strtol(argv[0], NULL, 0); if (num_cycles > 100000) num_cycles = 100000; |