Skip to content

Commit 7ef3f44

Browse files
committed
Removed all warnings
1 parent df67a6a commit 7ef3f44

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/SD.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ boolean walkPath(const char *filepath, SdFile& parentDir,
233233
*/
234234

235235
boolean callback_pathExists(SdFile& parentDir, const char *filePathComponent,
236-
boolean isLastComponent, void *object) {
236+
boolean /* isLastComponent */, void * /* object */) {
237237
/*
238238
239239
Callback used to determine if a file/directory exists in parent
@@ -311,15 +311,15 @@ boolean callback_openPath(SdFile& parentDir, char *filePathComponent,
311311

312312

313313
boolean callback_remove(SdFile& parentDir, const char *filePathComponent,
314-
boolean isLastComponent, void *object) {
314+
boolean isLastComponent, void * /* object */) {
315315
if (isLastComponent) {
316316
return SdFile::remove(parentDir, filePathComponent);
317317
}
318318
return true;
319319
}
320320

321321
boolean callback_rmdir(SdFile& parentDir, const char *filePathComponent,
322-
boolean isLastComponent, void *object) {
322+
boolean isLastComponent, void * /* object */) {
323323
if (isLastComponent) {
324324
SdFile f;
325325
if (!f.open(parentDir, filePathComponent, O_READ)) return false;

src/utility/Sd2Card.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ uint8_t Sd2Card::readBlock(uint32_t block, uint8_t* dst) {
376376
*/
377377
uint8_t Sd2Card::readData(uint32_t block,
378378
uint16_t offset, uint16_t count, uint8_t* dst) {
379-
uint16_t n;
380379
if (count == 0) return true;
381380
if ((count + offset) > 512) {
382381
goto fail;

src/utility/SdFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,8 @@ uint8_t SdFile::rmRfStar(void) {
904904
if (!f.remove()) return false;
905905
}
906906
// position to next entry if required
907-
if (curPosition_ != (32*(index + 1))) {
908-
if (!seekSet(32*(index + 1))) return false;
907+
if (curPosition_ != (32u*(index + 1))) {
908+
if (!seekSet(32u*(index + 1))) return false;
909909
}
910910
}
911911
// don't try to delete root

0 commit comments

Comments
 (0)