From: Michael Forney <mforney@mforney.org>
To: binutils@sourceware.org
Subject: [PATCH] bfd: Remove return with expression in void function
Date: Thu, 10 Feb 2022 15:10:12 -0800 [thread overview]
Message-ID: <20220210231012.6562-1-mforney@mforney.org> (raw)
This is not allowed in ISO C (C11 6.8.6.4p1):
> A return statement with an expression shall not appear in a
> function whose return type is void.
2022-02-10 Michael Forney <mforney@mforney.org>
* bfd.c (bfd_set_gp_value): Remove return with expression
in void function.
---
bfd/bfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/bfd.c b/bfd/bfd.c
index a2f294da983..d83371333fe 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -1876,7 +1876,7 @@ DESCRIPTION
void
bfd_set_gp_value (bfd *abfd, bfd_vma v)
{
- return _bfd_set_gp_value (abfd, v);
+ _bfd_set_gp_value (abfd, v);
}
/*
--
2.34.1
next reply other threads:[~2022-02-10 23:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-10 23:10 Michael Forney [this message]
2022-02-11 12:47 ` Nick Clifton
2022-02-11 23:26 ` Michael Forney
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=20220210231012.6562-1-mforney@mforney.org \
--to=mforney@mforney.org \
--cc=binutils@sourceware.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).