From 7cf369dcd1f9a7ca76aae2267537cd3da7e9bff5 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Mon, 7 Nov 2016 08:46:58 +0000 Subject: [PATCH] regbits: Added attribute unused As per pull request #127 Signed-off-by: Michel Pollet --- simavr/sim/sim_regbit.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simavr/sim/sim_regbit.h b/simavr/sim/sim_regbit.h index bc2d64b..2565195 100644 --- a/simavr/sim/sim_regbit.h +++ b/simavr/sim/sim_regbit.h @@ -93,7 +93,10 @@ static inline uint8_t avr_regbit_get(avr_t * avr, avr_regbit_t rb) * set to test then clear register operations. * makes cheking register bits before setting easier. */ -static inline uint8_t avr_regbit_from_value(avr_t * avr, avr_regbit_t rb, uint8_t value) +static inline uint8_t avr_regbit_from_value( + avr_t * avr __attribute__((unused)), + avr_regbit_t rb, + uint8_t value) { uint16_t a = rb.reg; if (!a) -- 2.39.5