[rtems commit] main_edit.c: Fix Unchecked return value (CID #1255318)
Joel Sherrill
joel at rtems.org
Mon Mar 8 20:56:10 UTC 2021
Module: rtems
Branch: master
Commit: 3246fa42e21b3aaa8703c95544a38850cc97334f
Changeset: http://git.rtems.org/rtems/commit/?id=3246fa42e21b3aaa8703c95544a38850cc97334f
Author: Ryan Long <ryan.long at oarcorp.com>
Date: Mon Mar 1 11:07:42 2021 -0500
main_edit.c: Fix Unchecked return value (CID #1255318)
CID 1255318: Unchecked return value in display_line().
Updates #4257
---
cpukit/libmisc/shell/main_edit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c
index a011049..8ac7eee 100644
--- a/cpukit/libmisc/shell/main_edit.c
+++ b/cpukit/libmisc/shell/main_edit.c
@@ -1089,7 +1089,7 @@ static void display_line(struct editor *ed, int pos, int fullline) {
int selstart, selend, ch;
char *s;
- get_selection(ed, &selstart, &selend);
+ (void) get_selection(ed, &selstart, &selend);
while (col < maxcol) {
if (margin == 0) {
if (!hilite && pos >= selstart && pos < selend) {
More information about the vc
mailing list