Skip to content

Commit 9ab68e1

Browse files
committed
avoid warnings on unused parameter
1 parent 155cbc5 commit 9ab68e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SPI/SPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class SPIClass {
149149
#else
150150
// On SAMD21, this compiles to nothing, so user code doesn't need to
151151
// check and conditionally compile lines for different architectures.
152-
void setClockSource(SercomClockSource clk) { };
152+
void setClockSource(SercomClockSource clk) { (void)clk; };
153153
#endif // end __SAMD51__
154154

155155
private:

0 commit comments

Comments
 (0)