From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed 2/2] sim: warnings: enable -Wreturn-type
Date: Thu, 21 Dec 2023 21:05:45 -0500 [thread overview]
Message-ID: <20231222020545.8663-2-vapier@gentoo.org> (raw)
In-Reply-To: <20231222020545.8663-1-vapier@gentoo.org>
Older versions of gcc support this warning flag. We're already clean.
---
sim/configure | 1 +
sim/m4/sim_ac_option_warnings.m4 | 1 +
2 files changed, 2 insertions(+)
diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4
index 555bdb0a26ae..1c2d09152306 100644
--- a/sim/m4/sim_ac_option_warnings.m4
+++ b/sim/m4/sim_ac_option_warnings.m4
@@ -69,6 +69,7 @@ build_warnings="$build_warnings
-Wold-style-definition
-Wpointer-sign
-Wreturn-mismatch
+-Wreturn-type
-Wstrict-prototypes
dnl The cgen virtual insn logic involves enum conversions.
dnl Disable until we can figure out how to make this work.
--
2.43.0
prev parent reply other threads:[~2023-12-22 2:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-22 2:05 [PATCH/committed 1/2] sim: warnings: fix -Wreturn-mismatch typo Mike Frysinger
2023-12-22 2:05 ` Mike Frysinger [this message]
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=20231222020545.8663-2-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb-patches@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).