// suppress bogus warning when compiling with gcc 4.3 #if (__GNUC__ == 4 && __GNUC_MINOR__ == 3) #pragma GCC diagnostic ignored "-Warray-bounds" #endif // The C++ compiler normally emits many spurious warnings for the use // of PSTR (even though it generates correct code). This workaround // has an equivalent effect but avoids the warnings, which otherwise // make finding real issues difficult. // // #ifdef DESKTOP_BUILD // # undef PROGMEM // # define PROGMEM __attribute__(()) // #else // # undef PROGMEM // # define PROGMEM __attribute__(( section(".progmem.data") )) // #endif #define SERIALDEBUG