adafruit/Adafruit_Protomatter

Unused variable error when compiling for NRF boards

hierophect opened this issue · 0 comments

When compiling the latest master of Protomatter in Circuitpython, there's an unused variable warning that is converted to an error by the Werror option:

In file included from ../../lib/protomatter/core.c:33:
../../lib/protomatter/arch.h: In function '_PM_convert_565_byte':
../../lib/protomatter/arch.h:1234:11: error: unused variable 'clockMask' [-Werror=unused-variable]
 1234 |   uint8_t clockMask = core->clockMask >> (core->portOffset * 8);
      |           ^~~~~~~~~