public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5149] PR-108136 Add return statement to mc-boot-ch/RTco.cc pge-boot/GRTco.cc
@ 2023-01-13 16:29 Gaius Mulley
0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2023-01-13 16:29 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2356557148193f729b12a6e63b086fd5068e9623
commit r13-5149-g2356557148193f729b12a6e63b086fd5068e9623
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date: Fri Jan 13 16:29:21 2023 +0000
PR-108136 Add return statement to mc-boot-ch/RTco.cc pge-boot/GRTco.cc
Clang found an exit path from function with non-void return type
that has missing return statement [missingReturn].
gcc/m2/ChangeLog:
* mc-boot-ch/GRTco.c (RTco_select): Add return 0.
* pge-boot/GRTco.c (RTco_select): Add return 0.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diff:
---
gcc/m2/mc-boot-ch/GRTco.c | 1 +
gcc/m2/pge-boot/GRTco.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/gcc/m2/mc-boot-ch/GRTco.c b/gcc/m2/mc-boot-ch/GRTco.c
index f960885d359..01a696a3530 100644
--- a/gcc/m2/mc-boot-ch/GRTco.c
+++ b/gcc/m2/mc-boot-ch/GRTco.c
@@ -110,6 +110,7 @@ RTco_select (__attribute__ ((unused)) int p1,
__attribute__ ((unused)) void *p4,
__attribute__ ((unused)) void *p5)
{
+ return 0;
}
diff --git a/gcc/m2/pge-boot/GRTco.c b/gcc/m2/pge-boot/GRTco.c
index f960885d359..01a696a3530 100644
--- a/gcc/m2/pge-boot/GRTco.c
+++ b/gcc/m2/pge-boot/GRTco.c
@@ -110,6 +110,7 @@ RTco_select (__attribute__ ((unused)) int p1,
__attribute__ ((unused)) void *p4,
__attribute__ ((unused)) void *p5)
{
+ return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-13 16:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 16:29 [gcc r13-5149] PR-108136 Add return statement to mc-boot-ch/RTco.cc pge-boot/GRTco.cc Gaius Mulley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).