[pushed] Modula-2: Claim Wreturn-type in lang.opt.

Message ID 20230128132353.77631-1-iain@sandoe.co.uk
State Accepted
Headers
Series [pushed] Modula-2: Claim Wreturn-type in lang.opt. |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Iain Sandoe Jan. 28, 2023, 1:23 p.m. UTC
  Now we claim options for Modula-2 in m2/lang.opt we need to add those
used for warnings too.
This fixes:
FAIL: gm2/warnings/returntype/pass/Termbase.mod 
FAIL: gm2/warnings/returntype/pass/goodreturn.mod 
FAIL: gm2/warnings/returntype/pass/keypressedsimple.mod

all with -O0 -g -Werror=return-type  

Tested on x86_64-darwin21, pushed to trunk as obvious
thanks,
Iain

--- 8< ---

Modula-2 handles this warning so that we need to claim it in the
language options.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

gcc/m2/ChangeLog:

	* lang.opt: Claim Wreturn-type.
---
 gcc/m2/lang.opt | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/gcc/m2/lang.opt b/gcc/m2/lang.opt
index ab4ea5547eb..b6ef8161d90 100644
--- a/gcc/m2/lang.opt
+++ b/gcc/m2/lang.opt
@@ -269,6 +269,10 @@  Wpedantic
 Modula-2
 ; Documented in common.opt
 
+Wreturn-type
+Modula-2
+; Documented in common.opt
+
 Wunused-variable
 Modula-2
 ; Documented in c.opt