warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] SOLVED !

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
elpimous12
Posts: 59
Joined: Tue 3. Aug 2021, 23:34

warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] SOLVED !

Post by elpimous12 » Wed 22. Sep 2021, 20:14

hello,
for those who encounter this warning :

Code: Select all

warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 TPCANBitrateFD BitrateFD = "your values";
 
just use a (char*) like it :

Code: Select all

TPCANBitrateFD BitrateFD = (char*) "your values";

Post Reply