Skip to content

Commit 814a352

Browse files
author
moussaillon
committed
Avoiding unused parameter warning for dmaDoNothingCallback()
1 parent bdf5ac8 commit 814a352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SPI/SPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void SPIClass::dmaCallback(Adafruit_ZeroDMA *dma) {
260260
// to the read channel to indicate end-of-transfer, and the write channel's
261261
// callback is assigned to this nonsense function (for reasons I'm not
262262
// entirely sure of, setting the callback to NULL doesn't work).
263-
static void dmaDoNothingCallback(Adafruit_ZeroDMA *dma) { }
263+
static void dmaDoNothingCallback(Adafruit_ZeroDMA *dma) { (void)dma; }
264264

265265
// This could've gone in begin(), but for the sake of organization...
266266
void SPIClass::dmaAllocate(void) {

0 commit comments

Comments
 (0)