From: Robert Pengelly Date: Mon, 13 Oct 2025 03:30:54 +0000 (+0100) Subject: Fixed warn_unused_result error/warning X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=dosfstools.git Fixed warn_unused_result error/warning --- 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 */