Skip to content

Commit e6c07cc

Browse files
authored
Merge pull request arduino#263 from ulysse314/adafruit-master
Avoiding unused parameter warning for dmaDoNothingCallback()
2 parents bdf5ac8 + 814a352 commit e6c07cc

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)