From 78aa75e2fc4cca85e1ef4fa588c29c3056b1dd63 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Mon, 13 Oct 2025 04:30:54 +0100 Subject: [PATCH] Fixed warn_unused_result error/warning --- mcopy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mcopy.c b/mcopy.c index 7480067..e7b4b3b 100644 --- a/mcopy.c +++ b/mcopy.c @@ -564,7 +564,7 @@ static char getch (void) { key++; /* F5 code is too low by 1 */ } - getchar (); /* take in following ~ (126), but discard code */ + (void) getchar (); /* take in following ~ (126), but discard code */ } else if (key == 50) { /* insert or F9-F12 */ @@ -580,12 +580,12 @@ static char getch (void) { key++; /* F11 and F12 are too low by 1 */ } - getchar (); /* take in following ~ (126), but discard code */ + (void) getchar (); /* take in following ~ (126), but discard code */ } } else if (key == 51 || key == 53 || key == 54) { /* delete, page up/down */ - getchar (); /* take in following ~ (126), but discard code */ + (void) getchar (); /* take in following ~ (126), but discard code */ } } else if (key == 79) { /* F1-F4 */ -- 2.34.1