arduino-stoerbert
arduino-stoerbert copied to clipboard
Compile errors
When trying to compile the sketch, the following warnings come up (full file path edited to protect privacy):
sketch\player.cpp:89:35: warning: invalid conversion from 'void*' to 'char*' [-fpermissive]
p.album[sequence] = malloc(strlen(entry.name()) + 1);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
sketch\player.cpp: In function 'void powerReminder()':
sketch\player.cpp:235:39: warning: large integer implicitly truncated to unsigned type [-Woverflow]
musicPlayer.sineTest(1000, 500);
^
sketch\player.cpp: In function 'void setupPlayer()':
sketch\player.cpp:410:63: warning: invalid conversion from 'const short unsigned int*' to 'const uint16_t* {aka const unsigned int*}' [-fpermissive]
vs1053.applyPatch(plugin, sizeof(plugin)/sizeof(plugin[0]));
^
In file included from sketch\player.cpp:4:0:
x:\path\to\Adafruit_VS1053_Library/Adafruit_VS1053.h:132:8: note: initializing argument 1 of 'void Adafruit_VS1053::applyPatch(const uint16_t*, uint16_t)'
void applyPatch(const uint16_t *patch, uint16_t patchsize);
^~~~~~~~~~
Compilation appears to complete despite these warnings, and upload to Arduino Uno proceeds as expected.