From a5485e637222b988cf9d4300b0b58caf04f985a8 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Fri, 26 Feb 2021 23:28:43 +0000 Subject: linearize.h: fix some 'selfcheck' warnings Commits 34c57a7f ("asm-mem: does it clobber memory?", 2021-02-20) and d6721b38 ("asm-mem: does it output to memory?", 2021-02-20) both add a single bit bitfield to the 'struct asm' part of the union contained within the 'struct instruction'. This causes the 'selfcheck' target to issue several 'dubious one-bit signed bitfield' errors. In order to suppress these errors, change the type of the bitfields to an unsigned type. Signed-off-by: Ramsay Jones Signed-off-by: Luc Van Oostenryck --- linearize.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linearize.h b/linearize.h index cf0cf066..01ee656c 100644 --- a/linearize.h +++ b/linearize.h @@ -150,8 +150,8 @@ struct instruction { struct /* asm */ { const char *string; struct asm_rules *asm_rules; - int clobber_memory:1; - int output_memory:1; + unsigned int clobber_memory:1; + unsigned int output_memory:1; }; }; }; -- cgit 1.2.3-korg