Skip to content

Commit d145963

Browse files
Clean up more unused param warnings
1 parent 4ec71ca commit d145963

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

libraries/BluetoothAudio/src/A2DPSource.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class A2DPSource : public Stream, public AudioOutputBase {
9595
}
9696

9797
virtual bool setBuffers(size_t buffers, size_t bufferWords, int32_t silenceSample = 0) override {
98+
(void) silenceSample;
9899
return setBufferSize(buffers * bufferWords * sizeof(int32_t));
99100
}
100101

libraries/SimpleMDNS/src/SimpleMDNS.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include <lwip/apps/mdns.h>
2626

2727
bool SimpleMDNS::begin(const char *hostname, unsigned int ttl) {
28+
(void) ttl;
29+
2830
if (_running) {
2931
return false;
3032
}

libraries/lwIP_w55rp20/src/utility/w55rp20.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ class Wiznet55rp20 {
202202
or register any functions, null function is called.
203203
*/
204204
inline void wizchip_spi_write_byte(uint8_t wb) {
205+
(void) wb;
206+
panic_unsupported(); // shouldn't be used
205207
//_spi.transfer(wb);
206208
}
207209

libraries/lwIP_w55rp20/src/wiznet_pio_spi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ static uint8_t wiznet_pio_spi_read_byte(void) {
307307

308308
// This is not used when the burst functions are provided
309309
static void wiznet_pio_spi_write_byte(uint8_t wb) {
310+
(void) wb;
310311
panic_unsupported(); // shouldn't be used
311312
}
312313

@@ -374,4 +375,4 @@ static wiznet_pio_spi_funcs_t *get_wiznet_pio_spi_impl(void) {
374375
.reset = wiznet_pio_spi_reset,
375376
};
376377
return &funcs;
377-
}
378+
}

libraries/lwIP_w6300/src/utility/w6300.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ class Wiznet6300 {
199199
or register any functions, null function is called.
200200
*/
201201
inline void wizchip_spi_write_byte(uint8_t wb) {
202+
(void) wb;
203+
panic_unsupported();
202204
//_spi.transfer(wb);
203205
}
204206

0 commit comments

Comments
 (0)