From 2356557148193f729b12a6e63b086fd5068e9623 Mon Sep 17 00:00:00 2001 From: Gaius Mulley Date: Fri, 13 Jan 2023 16:29:21 +0000 Subject: [PATCH] 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 --- 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 f960885d3595..01a696a35305 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 f960885d3595..01a696a35305 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; } -- 2.47.3