diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2023-01-13 16:29:21 +0000 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2023-01-13 16:29:21 +0000 |
commit | 2356557148193f729b12a6e63b086fd5068e9623 (patch) | |
tree | 1c7c710b8ff412769f0f09269306c97f2146559e /gcc | |
parent | 798a0d05b27279f8b1656c2e9549081e4af0afe4 (diff) | |
download | gcc-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.c | 1 | ||||
-rw-r--r-- | gcc/m2/pge-boot/GRTco.c | 1 |
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; } |