Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void SDClass::dateTime(uint16_t *date, uint16_t *time)
}
#endif

bool SDClass::format(int type, char progressChar, Print& pr)
bool SDClass::format(int type __attribute__((unused)), char progressChar __attribute__((unused)), Print &pr)
{
SdCard *card = sdfs.card();
if (!card) return false; // no SD card
Expand Down
13 changes: 7 additions & 6 deletions src/SD.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class SDFile : public FileImpl
virtual boolean isDirectory(void) {
return sdfatfile.isDirectory();
}
virtual File openNextFile(uint8_t mode=0) {
virtual File openNextFile(uint8_t mode __attribute__((unused))=0) {
SDFAT_FILE file = sdfatfile.openNextFile();
if (file) return File(new SDFile(file));
return File();
Expand Down Expand Up @@ -244,7 +244,7 @@ extern SDClass SD;
class Sd2Card
{
public:
bool init(uint32_t speed, uint8_t csPin) {
bool init(uint32_t speed __attribute__((unused)), uint8_t csPin) {
return SD.begin(csPin);
}
uint8_t type() {
Expand All @@ -254,10 +254,11 @@ class Sd2Card
class SdVolume
{
public:
bool init(Sd2Card &card) {
return SD.sdfs.vol() != nullptr;
}
uint8_t fatType() {
bool init(Sd2Card &card __attribute__((unused)))
{
return SD.sdfs.vol() != nullptr;
}
uint8_t fatType() {
return SD.sdfs.vol()->fatType();
}
uint32_t blocksPerCluster() {
Expand Down