From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id 6C1D33858C39; Fri, 13 Jan 2023 16:29:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C1D33858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673627393; bh=8DUycECuyrvcToZj9bRqtpXVs4ILxa/lDry4Dz0MyZ4=; h=From:To:Subject:Date:From; b=pIAsiCmwYbKqTg6fcVjkJQAJzNOvjEDdrmtboJyIGJJb2czM+p2yxe31UoQlbT7GK 6mIfLKTwMuugXcoQA0eVYhBoKm9/S9lYbi7ytpUo1rK1v1jMyK0mYEHCfck5FKAPMi 6yMLk3jj1iykw7NavpJVKG8BxqSqiL3ZI/gjKOIs= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Gaius Mulley 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 X-Act-Checkin: gcc X-Git-Author: Gaius Mulley X-Git-Refname: refs/heads/master X-Git-Oldrev: 798a0d05b27279f8b1656c2e9549081e4af0afe4 X-Git-Newrev: 2356557148193f729b12a6e63b086fd5068e9623 Message-Id: <20230113162953.6C1D33858C39@sourceware.org> Date: Fri, 13 Jan 2023 16:29:53 +0000 (GMT) List-Id: https://gcc.gnu.org/g:2356557148193f729b12a6e63b086fd5068e9623 commit r13-5149-g2356557148193f729b12a6e63b086fd5068e9623 Author: Gaius Mulley 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 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; }