From: Michel Pollet Date: Mon, 7 Nov 2016 08:46:58 +0000 (+0000) Subject: regbits: Added attribute unused X-Git-Tag: v1.4~6 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=7cf369dcd1f9a7ca76aae2267537cd3da7e9bff5;p=sx%2Fsimavr.git regbits: Added attribute unused As per pull request #127 Signed-off-by: Michel Pollet --- 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)