Fixed warn_unused_result error/warning master
authorRobert Pengelly <robertapengelly@hotmail.com>
Mon, 13 Oct 2025 03:30:54 +0000 (04:30 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Mon, 13 Oct 2025 03:30:54 +0000 (04:30 +0100)
mcopy.c

diff --git a/mcopy.c b/mcopy.c
index 748006744ca0959a001909969d2aa154b0d37eed..e7b4b3b5850624688992ec059ef31e8ea19978c5 100644 (file)
--- 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 */