adafruit / Adafruit_Protomatter

RGB matrix library for Arduino
70 stars 24 forks source link

Unused variable error when compiling for NRF boards #15

Closed hierophect closed 4 years ago

hierophect commented 4 years ago

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);
      |           ^~~~~~~~~