Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

WARNING : Deprecated conversion from string constant to char* #5

Open
remisarrailh opened this issue May 10, 2013 · 0 comments
Open

Comments

@remisarrailh
Copy link

When you tried to compile the rcswitch library, it will throw warning message.

This is how to fix it:

https://github.com/r10r/rcswitch-pi/blob/master/RCSwitch.cpp#L194
const char* code[5] = { "FFFF", "0FFF", "F0FF", "FF0F", "FFF0" };

https://github.com/r10r/rcswitch-pi/blob/master/RCSwitch.cpp#L229
const char* code[6] = { "FFFFF", "0FFFF", "F0FFF", "FF0FF", "FFF0F", "FFFF0" };

Source:http://stackoverflow.com/questions/59670/how-to-get-rid-of-deprecated-conversion-from-string-constant-to-char-warnin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant