[PATCH] main_help.c: Fix Unchecked return value from library (CID #1437650)
Gedare Bloom
gedare at rtems.org
Wed Mar 10 22:32:20 UTC 2021
ok
On Wed, Mar 10, 2021 at 11:22 AM Ryan Long <ryan.long at oarcorp.com> wrote:
>
> CID 1437650: Unchecked return value from library in rtems_shell_help().
>
> Closes #4291
> ---
> cpukit/libmisc/shell/main_help.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cpukit/libmisc/shell/main_help.c b/cpukit/libmisc/shell/main_help.c
> index 9f59e9d..564bc30 100644
> --- a/cpukit/libmisc/shell/main_help.c
> +++ b/cpukit/libmisc/shell/main_help.c
> @@ -148,7 +148,7 @@ static int rtems_shell_help(
> line+= rtems_shell_help_cmd(shell_cmd);
> if (lines && (line > lines)) {
> printf("Press any key to continue...");
> - getchar();
> + (void) getchar();
> printf("\n");
> line = 0;
> }
> --
> 1.8.3.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list