Skip to content

Patch to Sd2Card.cpp to elimimate compiler warnings #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
pins_arduino.h: fix compiler warning
The SPI pins are declared as 'const static' instead of 'static const', causing
the compiler to throw a warning with the -W -Wall flags are used.
  • Loading branch information
jcwren committed Dec 21, 2010
commit 04165dab03d6d60e017070346d06aef7bb55c095
16 changes: 8 additions & 8 deletions hardware/arduino/cores/arduino/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
#define TIMER5C 16

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
const static uint8_t SS = 53;
const static uint8_t MOSI = 51;
const static uint8_t MISO = 50;
const static uint8_t SCK = 52;
static const uint8_t SS = 53;
static const uint8_t MOSI = 51;
static const uint8_t MISO = 50;
static const uint8_t SCK = 52;
#else
const static uint8_t SS = 10;
const static uint8_t MOSI = 11;
const static uint8_t MISO = 12;
const static uint8_t SCK = 13;
static const uint8_t SS = 10;
static const uint8_t MOSI = 11;
static const uint8_t MISO = 12;
static const uint8_t SCK = 13;
#endif

// On the ATmega1280, the addresses of some of the port registers are
Expand Down