I have a working Arduino sketch which I started writing in a state of complete ignorance, drawing on fragmentary clues from all over the internet. When I compile it, at this line ...
char* Day[] = {"","Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
...I get the following warning message:
84:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
(actually repeated 8 times, presumably one for each string conversion)
I guess this means that the syntax I have used is somehow risky?
Despite the warning, the sketch does compile, and it works as intended. It bugs me, though - I'd like it to be perfect, and to know why it was wrong.
Please can anyone tell me how I could have coded this line better?