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 <i...@sandoe.co.uk> gcc/m2/ChangeLog: * lang.opt: Claim Wreturn-type. --- gcc/m2/lang.opt | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.37.1 (Apple Git-137.1)