Ostrzeżenie: deprecated conversion from string constant to ‘char *
Ostatnio zmodyfikowano 2016-02-11 15:40
Pawlo3 Temat założony przez niniejszego użytkownika |
Ostrzeżenie: deprecated conversion from string constant to ‘char * » 2016-02-11 15:13:42 Czemu wyświetla się: bot.cpp:309:61: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] bot.cpp:312:35: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
if( charSearch( buf, "whois Pawel" ) ) Mam Linuxa i kompilator g++. |
|
kmlkamilek |
» 2016-02-11 15:24:20 Pokaż funkcję charSearch |
|
Monika90 |
» 2016-02-11 15:40:46 Drugi parametr funkcji powinien być typu const char*, jeżeli nie jest, to nie da się przekazać literału (czyli tekstu w cudzysłowach). |
|
« 1 » |