https://gcc.gnu.org/g:d16355c72c7f7b54ecf06371d14d7ad309ea4c34
commit r15-1623-gd16355c72c7f7b54ecf06371d14d7ad309ea4c34 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Tue Jun 25 21:37:44 2024 +0100 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 <gaiusm...@gmail.com> Diff: --- gcc/m2/gm2-libs-ch/termios.c | 2 +- gcc/m2/mc-boot-ch/Gtermios.cc | 2 +- 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 }