]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR modula2/115540 gcc/m2/mc-boot-ch/Gtermios.cc error return-statement with a value
authorGaius Mulley <gaiusmod2@gmail.com>
Tue, 25 Jun 2024 20:37:44 +0000 (21:37 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Tue, 25 Jun 2024 20:37:44 +0000 (21:37 +0100)
This patch fixes three occurrences of cfmakeraw use in the hand built
m2 support libraries which incorrectly attempt to return a void
result.

gcc/m2/ChangeLog:

PR modula2/115540
* gm2-libs-ch/termios.c (cfmakeraw): Remove return.
* mc-boot-ch/Gtermios.cc (cfmakeraw): Remove return.
* pge-boot/Gtermios.cc (cfmakeraw): Remove return.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-libs-ch/termios.c
gcc/m2/mc-boot-ch/Gtermios.cc
gcc/m2/pge-boot/Gtermios.cc

index 472a4c022e804a93cb1756ebf8970f0cad15ea73..fe7403b3dee3516d7097bf83db788472a2b0b5cb 100644 (file)
@@ -281,7 +281,7 @@ int EXPORT (tcsetattr) (int fd, int option, struct termios *t)
 void EXPORT (cfmakeraw) (struct termios *t)
 {
 #if defined(HAVE_CFMAKERAW)
-  return cfmakeraw (t);
+  cfmakeraw (t);
 #endif
 }
 
index a11065a672578d0933d68ade1ef198be234ec31a..0ef5c8ba8039010cd6df9f839c6dcb94ea1789ba 100644 (file)
@@ -289,7 +289,7 @@ void
 EXPORT (cfmakeraw) (struct termios *t)
 {
 #if defined(HAVE_CFMAKERAW)
-  return cfmakeraw (t);
+  cfmakeraw (t);
 #endif
 }
 
index 4f3557619db18197613139ba1fe0d5feed31dedf..5f966403b197c0c6ca87e83933e43c2749f9e8a1 100644 (file)
@@ -289,7 +289,7 @@ void
 EXPORT (cfmakeraw) (struct termios *t)
 {
 #if defined(HAVE_CFMAKERAW)
-  return cfmakeraw (t);
+  cfmakeraw (t);
 #endif
 }