From cf8061c4d36e99f82bae7ff8d062a04ff975a78c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 8 Jan 2022 12:14:27 +0900 Subject: [PATCH] [qfcc] Mark opcode_get as pure Because gcc told me to :P --- tools/qfcc/include/opcodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/include/opcodes.h b/tools/qfcc/include/opcodes.h index d8aa393ea..2966235e6 100644 --- a/tools/qfcc/include/opcodes.h +++ b/tools/qfcc/include/opcodes.h @@ -36,7 +36,7 @@ typedef struct instruction_s instruction_t; struct operand_s; -pr_ushort_t opcode_get (instruction_t *inst); +pr_ushort_t opcode_get (instruction_t *inst) __attribute__((pure)); instruction_t *opcode_find (const char *name, struct operand_s *op_a, struct operand_s *op_b, struct operand_s *op_c); void opcode_init (void);