From 258f40bce90a11775b35df78d13501e062db4154 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 28 Sep 2019 15:27:50 +0100 Subject: [PATCH] Mark IO_REG_BASE variables as unused on the ESP8266 Fixes #74. --- util/OneWire_direct_gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/OneWire_direct_gpio.h b/util/OneWire_direct_gpio.h index 2110404..fcae4b4 100644 --- a/util/OneWire_direct_gpio.h +++ b/util/OneWire_direct_gpio.h @@ -108,7 +108,7 @@ #define PIN_TO_BASEREG(pin) ((volatile uint32_t*) GPO) #define PIN_TO_BITMASK(pin) (1UL << (pin)) #define IO_REG_TYPE uint32_t -#define IO_REG_BASE_ATTR +#define IO_REG_BASE_ATTR __attribute__((unused)) #define IO_REG_MASK_ATTR static inline __attribute__((always_inline))