aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2023-01-13 16:29:21 +0000
committerGaius Mulley <gaiusmod2@gmail.com>2023-01-13 16:29:21 +0000
commit2356557148193f729b12a6e63b086fd5068e9623 (patch)
tree1c7c710b8ff412769f0f09269306c97f2146559e /gcc
parent798a0d05b27279f8b1656c2e9549081e4af0afe4 (diff)
downloadgcc-2356557148193f729b12a6e63b086fd5068e9623.zip
gcc-2356557148193f729b12a6e63b086fd5068e9623.tar.gz
gcc-2356557148193f729b12a6e63b086fd5068e9623.tar.bz2
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/m2/mc-boot-ch/GRTco.c1
-rw-r--r--gcc/m2/pge-boot/GRTco.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/gcc/m2/mc-boot-ch/GRTco.c b/gcc/m2/mc-boot-ch/GRTco.c
index f960885..01a696a 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 f960885..01a696a 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;
}