Adafruit-GFX-Library icon indicating copy to clipboard operation
Adafruit-GFX-Library copied to clipboard

fix compiler's warnings

Open JM-FRANCE opened this issue 6 years ago • 2 comments

When compiling Adafruit_SPITFT.cpp on AVR boards the Adafruit_SPITFT::writePixels member function does not use block nor bigEndian.

Suggest to use attribute ((unused)) and changing the signature to

void Adafruit_SPITFT::writePixels(uint16_t *colors, uint32_t len, __attribute__ ((unused)) bool block, __attribute__ ((unused)) bool bigEndian) {

to avoid compiler warnings.

JM-FRANCE avatar Jun 16 '19 16:06 JM-FRANCE

sounds good - please submit a PR if you can it would be appreciated! :)

ladyada avatar Jun 16 '19 17:06 ladyada

I think this got closed by #275, if not I can try this as my first issue here

Mark1626 avatar Sep 28 '20 03:09 Mark1626