adafruit / Adafruit-GFX-Library

Adafruit GFX graphics core Arduino library, this is the 'core' class that all our other graphics libraries derive from
https://learn.adafruit.com/adafruit-gfx-graphics-library
Other
2.41k stars 1.55k forks source link

fix compiler's warnings #230

Open JM-FRANCE opened 5 years ago

JM-FRANCE commented 5 years ago

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.

ladyada commented 5 years ago

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

Mark1626 commented 4 years ago

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