Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid conversion from string constant to 'char*'
Warning was (gcc): .../examples/LibusbTest.cpp: In function ‘int main(int, char**)’: .../examples/LibusbTest.cpp:481:82: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] std::shared_ptr<unsigned char> pPingString = allocString("PING!", pingDataSize); ^ .../examples/LibusbTest.cpp:625:84: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] std::shared_ptr<unsigned char> pPingString = allocString("apostle", pingDataSize); ^ .../examples/LibusbTest.cpp:768:84: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] std::shared_ptr<unsigned char> pPingString = allocString("apostle", pingDataSize); ^ Warning was (clang): .../examples/LibusbTest.cpp:481:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ...std::shared_ptr<unsigned char> pPingString = allocString("PING!", pingDa... ^ .../examples/LibusbTest.cpp:625:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ...std::shared_ptr<unsigned char> pPingString = allocString("apostle", ping... ^ .../examples/LibusbTest.cpp:768:61: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ...std::shared_ptr<unsigned char> pPingString = allocString("apostle", ping... ^ Related-to-issue: zarthcode#2 Signed-off-by: Stephan Linz <[email protected]>
- Loading branch information