diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-06-25 21:37:44 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-06-25 21:37:44 +0100 |
commit | d16355c72c7f7b54ecf06371d14d7ad309ea4c34 (patch) | |
tree | cd2d1fa56b274c212a4c48751eb640cf7f938ac3 | |
parent | 1ea95cc5e099d554764b82df8e972129e9d20885 (diff) |
PR modula2/115540 gcc/m2/mc-boot-ch/Gtermios.cc error return-statement with a value
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>
-rw-r--r-- | gcc/m2/gm2-libs-ch/termios.c | 2 | ||||
-rw-r--r-- | gcc/m2/mc-boot-ch/Gtermios.cc | 2 | ||||
-rw-r--r-- | gcc/m2/pge-boot/Gtermios.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/m2/gm2-libs-ch/termios.c b/gcc/m2/gm2-libs-ch/termios.c index 472a4c022e8..fe7403b3dee 100644 --- a/gcc/m2/gm2-libs-ch/termios.c +++ b/gcc/m2/gm2-libs-ch/termios.c @@ -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 } diff --git a/gcc/m2/mc-boot-ch/Gtermios.cc b/gcc/m2/mc-boot-ch/Gtermios.cc index a11065a6725..0ef5c8ba803 100644 --- a/gcc/m2/mc-boot-ch/Gtermios.cc +++ b/gcc/m2/mc-boot-ch/Gtermios.cc @@ -289,7 +289,7 @@ void EXPORT (cfmakeraw) (struct termios *t) { #if defined(HAVE_CFMAKERAW) - return cfmakeraw (t); + cfmakeraw (t); #endif } diff --git a/gcc/m2/pge-boot/Gtermios.cc b/gcc/m2/pge-boot/Gtermios.cc index 4f3557619db..5f966403b19 100644 --- a/gcc/m2/pge-boot/Gtermios.cc +++ b/gcc/m2/pge-boot/Gtermios.cc @@ -289,7 +289,7 @@ void EXPORT (cfmakeraw) (struct termios *t) { #if defined(HAVE_CFMAKERAW) - return cfmakeraw (t); + cfmakeraw (t); #endif } |