[rtems commit] main_help.c: Do not care what char is returned by getchar()
Joel Sherrill
joel at rtems.org
Fri May 28 17:29:37 UTC 2021
Module: rtems
Branch: master
Commit: 2deba0240e82408da5a59c98afd0304fac192fcc
Changeset: http://git.rtems.org/rtems/commit/?id=2deba0240e82408da5a59c98afd0304fac192fcc
Author: Ryan Long <ryan.long at oarcorp.com>
Date: Tue Mar 30 11:04:07 2021 -0400
main_help.c: Do not care what char is returned by getchar()
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;
}
More information about the vc
mailing list