Open alpha320pilot opened 2 years ago
It doesn't hurt anything. I am planning an update to correct it. Thank you for reaching out!
On Sun, Nov 21, 2021, 6:38 AM alpha320pilot @.***> wrote:
Hello,
First of all thank you very much for this amazing library ! It makes everything very easy. When I verify my code I always get below warning. I use Arduino Uno.
Xplane_Test\Xplane_Test.ino:15:86: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
Xinterface.registerDataRef("sim/cockpit2/switches/beacon_on",XPL_READ,100,0,&beacon);
I believe this warning is related with the library. When I searched on the web I see similar warnings when you declare an input parameter as a char , not a const char .
Thank you very much again. Best Regards, alpha320pilot
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/curiosity-workshop/XPlane-Direct/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AREIYKMHQTLNW5OLIEN6J6TUNDR3FANCNFSM5IPDUHQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hello,
First of all thank you very much for this amazing library ! It makes everything very easy. When I verify my code I always get below warning. I use Arduino Uno.
Xplane_Test\Xplane_Test.ino:15:86: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] Xinterface.registerDataRef("sim/cockpit2/switches/beacon_on",XPL_READ,100,0,&beacon);
I believe this warning is related with the library. When I searched on the web I see similar warnings when you declare an input parameter as a char , not a const char .
Thank you very much again. Best Regards, alpha320pilot