k3ng / k3ng_cw_keyer

K3NG Arduino CW Keyer

Home Page:http://blog.radioartisan.com/arduino-cw-keyer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

PKeyes505 opened this issue · comments

I am very new to CW and K3ng_cw_keyer. I have downloaded the project and am trying to compile in Arduino IDE 1.8.19 and place on an Arduino Leonardo. I am hoping to get the Straight Key keyboard emulator functionality working so I can practice.

When I "Verify" the project I get the following error. What is strange is that once in 50 attempts the code will actually verify without error and I can upload it. Is there something I am doing wrong or something I need to do differently?

In file included from G:\OneDrive-Personal\OneDrive\Ham Radio\k3ng_cw_keyer-master\k3ng_keyer\k3ng_keyer.ino:1532:0:
G:\OneDrive-Personal\OneDrive\Ham Radio\k3ng_cw_keyer-master\k3ng_keyer\k3ng_keyer.ino: In function 'void initialize_display()':
G:\OneDrive-Personal\OneDrive\Ham Radio\k3ng_cw_keyer-master\k3ng_keyer\keyer_settings.h:320:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
#define HI_TEXT "HI" // Must be in UPPER case
^
G:\OneDrive-Personal\OneDrive\Ham Radio\k3ng_cw_keyer-master\k3ng_keyer\k3ng_keyer.ino:18437:23: note: in expansion of macro 'HI_TEXT'
char* hi_text = HI_TEXT;
^~~~~~~
Sketch uses 12222 bytes (42%) of program storage space. Maximum is 28672 bytes.
Global variables use 664 bytes (25%) of dynamic memory, leaving 1896 bytes for local variables. Maximum is 2560 bytes.