public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-5149] PR-108136 Add return statement to mc-boot-ch/RTco.cc pge-boot/GRTco.cc
Date: Fri, 13 Jan 2023 16:29:53 +0000 (GMT)	[thread overview]
Message-ID: <20230113162953.6C1D33858C39@sourceware.org> (raw)

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;
 }

                 reply	other threads:[~2023-01-13 16:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230113162953.6C1D33858C39@sourceware.org \
    --to=gaius@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).