summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-03-30 11:04:07 -0400
committerJoel Sherrill <joel@rtems.org>2021-05-28 12:15:50 -0500
commit2deba0240e82408da5a59c98afd0304fac192fcc (patch)
treef66c14ce3bce55a2eedbc402eec8fc14bd77c24e /cpukit/libmisc
parentmain_cp.c: Ignore return value from stat() (diff)
downloadrtems-2deba0240e82408da5a59c98afd0304fac192fcc.tar.bz2
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
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r--cpukit/libmisc/shell/main_help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_help.c b/cpukit/libmisc/shell/main_help.c
index 9f59e9df4b..564bc30a9c 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;
}