[pushed] Modula-2: Claim Wreturn-type in lang.opt.
Commit Message
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(+)
@@ -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