public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/committed 1/2] sim: warnings: fix -Wreturn-mismatch typo
@ 2023-12-22  2:05 Mike Frysinger
  2023-12-22  2:05 ` [PATCH/committed 2/2] sim: warnings: enable -Wreturn-type Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2023-12-22  2:05 UTC (permalink / raw)
  To: gdb-patches

---
 sim/configure                    | 2 +-
 sim/m4/sim_ac_option_warnings.m4 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4
index bdb99c496527..555bdb0a26ae 100644
--- a/sim/m4/sim_ac_option_warnings.m4
+++ b/sim/m4/sim_ac_option_warnings.m4
@@ -68,7 +68,7 @@ build_warnings="$build_warnings
 -Wold-style-declaration
 -Wold-style-definition
 -Wpointer-sign
--WWreturn-mismatch
+-Wreturn-mismatch
 -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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH/committed 2/2] sim: warnings: enable -Wreturn-type
  2023-12-22  2:05 [PATCH/committed 1/2] sim: warnings: fix -Wreturn-mismatch typo Mike Frysinger
@ 2023-12-22  2:05 ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2023-12-22  2:05 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-22  2:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-22  2:05 [PATCH/committed 1/2] sim: warnings: fix -Wreturn-mismatch typo Mike Frysinger
2023-12-22  2:05 ` [PATCH/committed 2/2] sim: warnings: enable -Wreturn-type Mike Frysinger

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).