Skip to content

Commit 4ec71ca

Browse files
Clean up some unused param warnings
1 parent c441ac2 commit 4ec71ca

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cores/rp2040/SemiFS.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class SemiFSFileImpl : public FileImpl {
113113
}
114114

115115
bool truncate(uint32_t size) override {
116+
(void) size;
116117
return false; // Not allowed
117118
}
118119

@@ -215,6 +216,7 @@ class SemiFSImpl : public FSImpl {
215216
}
216217

217218
DirImplPtr openDir(const char* path) override {
219+
(void) path;
218220
// No directories
219221
return DirImplPtr();
220222
}
@@ -229,6 +231,7 @@ class SemiFSImpl : public FSImpl {
229231
}
230232

231233
bool info(FSInfo& info) override {
234+
(void) info;
232235
// Not available
233236
return false;
234237
}
@@ -241,11 +244,13 @@ class SemiFSImpl : public FSImpl {
241244
}
242245

243246
bool mkdir(const char* path) override {
247+
(void) path;
244248
// No mkdir
245249
return false;
246250
}
247251

248252
bool rmdir(const char* path) override {
253+
(void) path;
249254
// No rmdir
250255
return false;
251256
}
@@ -271,6 +276,7 @@ class SemiFSImpl : public FSImpl {
271276
}
272277

273278
bool setConfig(const FSConfig &cfg) override {
279+
(void) cfg;
274280
return true;
275281
}
276282

libraries/WiFi/src/WiFiClass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ uint8_t WiFiClass::beginAP(const char *ssid, const char* passphrase) {
168168
}
169169

170170
uint8_t WiFiClass::beginAP(const char *ssid, const char* passphrase, uint8_t channel) {
171+
(void) channel; // May not be used on non-CYW32 WiFi implementations
171172
end();
172173

173174
_ssid = ssid;

0 commit comments

Comments
 (0)