main_help.c: Unchecked return value from library (CID #1437650)

CID 1437650: Unchecked return value from library in rtems_shell_help().

Closes #4291
This commit is contained in:
Ryan Long
2021-03-02 13:51:46 -05:00
committed by Joel Sherrill
parent 55ba229d22
commit fbab8325a9

View File

@@ -119,7 +119,8 @@ static int rtems_shell_help(
rtems_shell_cmd_t *shell_cmd;
if (lines && (line > lines)) {
printf("Press any key to continue...");getchar();
printf("Press any key to continue...");
(void) getchar(); /* we only want to know a character was pressed */
printf("\n");
line = 0;
}