]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR-108136 Add return statement to mc-boot-ch/RTco.cc pge-boot/GRTco.cc
authorGaius Mulley <gaiusmod2@gmail.com>
Fri, 13 Jan 2023 16:29:21 +0000 (16:29 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 13 Jan 2023 16:29:21 +0000 (16:29 +0000)
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>
gcc/m2/mc-boot-ch/GRTco.c
gcc/m2/pge-boot/GRTco.c

index f960885d35952264fa2885b785a5ddf8bdd25a50..01a696a3530595b93638e395b5778928bfcfba07 100644 (file)
@@ -110,6 +110,7 @@ RTco_select (__attribute__ ((unused)) int p1,
             __attribute__ ((unused)) void *p4,
             __attribute__ ((unused)) void *p5)
 {
+  return 0;
 }
 
 
index f960885d35952264fa2885b785a5ddf8bdd25a50..01a696a3530595b93638e395b5778928bfcfba07 100644 (file)
@@ -110,6 +110,7 @@ RTco_select (__attribute__ ((unused)) int p1,
             __attribute__ ((unused)) void *p4,
             __attribute__ ((unused)) void *p5)
 {
+  return 0;
 }