mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2026-10-26 22:10:52 +00:00
Fix -Wunused-parameter warnings (#328)
This commit is contained in:
1 parent
c40424af31
commit
58606c5701
2 files changed
+4
No files matched your search
@@ -1539,6 +1539,7 @@ void Adafruit_GFX::getTextBounds(const __FlashStringHelper *str, int16_t x,
|
||||
/**************************************************************************/
|
||||
void Adafruit_GFX::invertDisplay(bool i) {
|
||||
// Do nothing, must be subclassed if supported by hardware
|
||||
(void)i; // disable -Wunused-parameter warning
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
@@ -1984,6 +1984,7 @@ uint16_t Adafruit_SPITFT::readcommand16(uint16_t addr) {
|
||||
}
|
||||
return result;
|
||||
#else
|
||||
(void)addr; // disable -Wunused-parameter warning
|
||||
return 0;
|
||||
#endif // end !USE_FAST_PINIO
|
||||
}
|
||||
@@ -2171,6 +2172,8 @@ void Adafruit_SPITFT::write16(uint16_t w) {
|
||||
#if defined(USE_FAST_PINIO)
|
||||
if (tft8.wide)
|
||||
*(volatile uint16_t *)tft8.writePort = w;
|
||||
#else
|
||||
(void)w; // disable -Wunused-parameter warning
|
||||
#endif
|
||||
TFT_WR_STROBE();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user