We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bdf5ac8 + 814a352 commit e6c07ccCopy full SHA for e6c07cc
libraries/SPI/SPI.cpp
@@ -260,7 +260,7 @@ void SPIClass::dmaCallback(Adafruit_ZeroDMA *dma) {
260
// to the read channel to indicate end-of-transfer, and the write channel's
261
// callback is assigned to this nonsense function (for reasons I'm not
262
// entirely sure of, setting the callback to NULL doesn't work).
263
-static void dmaDoNothingCallback(Adafruit_ZeroDMA *dma) { }
+static void dmaDoNothingCallback(Adafruit_ZeroDMA *dma) { (void)dma; }
264
265
// This could've gone in begin(), but for the sake of organization...
266
void SPIClass::dmaAllocate(void) {
0 commit comments