From 814a35258897299b3b8ee0fbdfcdfded1b09665c Mon Sep 17 00:00:00 2001 From: moussaillon Date: Tue, 15 Sep 2020 16:32:21 +0200 Subject: [PATCH] Avoiding unused parameter warning for dmaDoNothingCallback() --- libraries/SPI/SPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SPI/SPI.cpp b/libraries/SPI/SPI.cpp index b975352..2b6b832 100644 --- a/libraries/SPI/SPI.cpp +++ b/libraries/SPI/SPI.cpp @@ -260,7 +260,7 @@ void SPIClass::dmaCallback(Adafruit_ZeroDMA *dma) { // to the read channel to indicate end-of-transfer, and the write channel's // callback is assigned to this nonsense function (for reasons I'm not // entirely sure of, setting the callback to NULL doesn't work). -static void dmaDoNothingCallback(Adafruit_ZeroDMA *dma) { } +static void dmaDoNothingCallback(Adafruit_ZeroDMA *dma) { (void)dma; } // This could've gone in begin(), but for the sake of organization... void SPIClass::dmaAllocate(void) {