diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-02 06:13:34 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-10-02 06:13:34 +0400 |
commit | 20c7d9455794e901301feaa2a2e9d978384853ff (patch) | |
tree | 73be74e419a62d9cc2e6b7385b55bd060f5b955f /noise.cpp | |
parent | 1f0a65b39e9b0ad528fe74373ec871bb160f075a (diff) |
Clean up warnings
Diffstat (limited to 'noise.cpp')
-rw-r--r-- | noise.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -5,6 +5,14 @@ #define USE_PROGMEM #endif +// Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734 +#ifdef FASTLED_AVR +#ifdef PROGMEM +#undef PROGMEM +#define PROGMEM __attribute__((section(".progmem.data"))) +#endif +#endif + #ifdef USE_PROGMEM #define FL_PROGMEM PROGMEM #define P(x) pgm_read_byte_near(p + x) @@ -519,7 +527,6 @@ void fill_raw_2dnoise16(uint16_t *pData, int width, int height, uint8_t octaves, scalex *= skip; scaley *= skip; - uint32_t xx = x; fract16 invamp = 65535-amplitude; for(int i = 0; i < height; i+=skip, y+=scaley) { uint16_t *pRow = pData + (i*width); |