[fixed] src/login/login_auth.cpp
Posted: Thu Apr 23, 2015 10:23 am
Code: Select all
g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common -DdsTCPSERV -I/usr//include/luajit-2.0 -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG -g -O2 -MT dsconnect-login_auth.o -MD -MP -MF .deps/dsconnect-login_auth.Tpo -c -o dsconnect-login_auth.o `test -f 'src/login/login_auth.cpp' || echo './'`src/login/login_auth.cpp
src/login/login_auth.cpp: In function 'int32 login_parse(int32)':
src/login/login_auth.cpp:227:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *fmtQuery = "SELECT max(accounts.id) FROM accounts;";
^
src/login/login_auth.cpp:254:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
fmtQuery = "INSERT INTO accounts(id,login,password,timecreate,timelastmodify,status,priv)\
^
src/login/login_auth.cpp:258:49: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
strtimecreate,ACCST_NORMAL,ACCPRIV_USER) == SQL_ERROR )
^
make: *** [dsconnect-login_auth.o] Error 1