issue: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite

Hi, I continue learning about the arduino configuration of automatic beer keg washing processes.

The program is in use by another user, but when I compile it I have errors del type: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite]

the issue is:

kegwasher.ino:95:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
kegwasher.ino: In function 'void select()':
kegwasher.ino:155:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   lcd_printf("Mode :");                                  //problema generado
                      ^
kegwasher.ino:157:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   lcd_printf("%c %s", CHAR_UP_DOWN, MODES[mode].name);   //problema generado
                                                     ^
kegwasher.ino: In function 'void select_update()':
kegwasher.ino:191:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     lcd_printf("%c %s", CHAR_UP_DOWN, MODES[mode].name);      //problema generado
                                                       ^
kegwasher.ino: In function 'void run()':
kegwasher.ino:265:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   lcd_printf("Preparation");                                //problema generado
                           ^
kegwasher.ino: In function 'void run_update()':
C:\Users\JAVIER\Documents\Arduino\kegwasher-master\kegwasher\kegwasher.ino:308:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   lcd_printf(" %dmn%02d / %dmn%02d", rtime_mn, rtime_s, ftime_mn, ftime_s);    //problema generado
                                                                          ^
kegwasher.ino: In function 'void terminate()':
kegwasher.ino:326:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   lcd_printf(" Termine");                                     //problema generado
                        ^
kegwasher.ino: In function 'void cancel()':
kegwasher.ino:343:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   lcd_printf(" Annule");                                 //problema generado
                       ^
El Sketch usa 8116 bytes (25%) del espacio de almacenamiento de programa. El máximo es 32256 bytes.
Las variables Globales usan 538 bytes (26%) de la memoria dinámica, dejando 1510 bytes para las variables locales. El máximo es 2048 bytes.

if I seek to change: void lcd_printf(char *fmt, ...) by void lcd_printf(const char *fmt, ...), the program indicates a single error, although I don't know if what I do is correct.

C:\Users\JAVIER\Documents\Arduino\kegwasher-master\kegwasher\kegwasher.ino:95:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 };
 ^
El Sketch usa 8116 bytes (25%) del espacio de almacenamiento de programa. El máximo es 32256 bytes.
Las variables Globales usan 538 bytes (26%) de la memoria dinámica, dejando 1510 bytes para las variables locales. El máximo es 2048 bytes.

How can I solve this problem?
the sketch appear in attach beause is very long for the post allowed

kegwasher.ino (9.9 KB)

javierdu:
the sketch appear in the next post by a question of lenght allowed

The correct way to handle that, is by adding the sketch as an attachment.

yeah, I have seen that attach supports *.ino and I have added

What's the problem?
I see only warnings.

i often get this warning/error. i write a function with a "char *" argument. change it to "const char *" since your' function is not modifying the value ... or is it?

yeah, I tested in a protoboard with leds and resistences in both manner: with and without "const" and is ok.
is only a warning but no afect the process
Javier