From 8c097578a3b854192d9d81a35bd2e1d7358b04fd Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Wed, 30 Aug 2023 11:36:14 -0300 Subject: [PATCH] Add warning if no flags are set in getbrk --- frontends/lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/lexer.c b/frontends/lexer.c index 222cb41e2..33c52a83b 100644 --- a/frontends/lexer.c +++ b/frontends/lexer.c @@ -3721,7 +3721,7 @@ instr_p2[] = { { "execf", 0x0d600033, P2_DST_CONST_OK, OPC_GENERIC_NR_NOFLAGS, 0 }, { "getptr", 0x0d600034, DST_OPERAND_ONLY, OPC_GENERIC_NOFLAGS, 0 }, - { "getbrk", 0x0d600035, DST_OPERAND_ONLY, OPC_GENERIC_NOFLAGS, FLAG_P2_STD }, + { "getbrk", 0x0d600035, DST_OPERAND_ONLY, OPC_GENERIC_NOFLAGS, FLAG_P2_STD|FLAG_WARN_NOTUSED }, { "cogbrk", 0x0d600035, DST_OPERAND_ONLY, OPC_GENERIC_NOFLAGS, 0 }, { "brk", 0x0d600036, P2_DST_CONST_OK, OPC_BREAK, 0 }, { "setluts",0x0d600037, P2_DST_CONST_OK, OPC_GENERIC_NR_NOFLAGS, 0 },