Compile Error #91

Closed
opened 2014-08-27 12:32:05 -06:00 by anonbyte · 1 comment
anonbyte commented 2014-08-27 12:32:05 -06:00 (Migrated from github.com)

In file included from /home/pvpgn/src/bnetd/command.cpp:90:0:
/home/pvpgn/src/bnetd/luainterface.h:61:28: warning: comma at end of enumerator list [-pedantic]
/home/pvpgn/src/bnetd/command.cpp: In function ‘int pvpgn::bnetd::handle_ladderinfo_command(pvpgn::bnetd::t_connection, const char_)’:
/home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%s’ expects argument of type ‘char_’, but argument 4 has type ‘unsigned int’ [-Wformat]
/home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘const char_’ [-Wformat]
/home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%s’ expects argument of type ‘char_’, but argument 6 has type ‘unsigned int’ [-Wformat]
/home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%u’ expects a matching ‘unsigned int’ argument [-Wformat]
/home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%s’ expects argument of type ‘char_’, but argument 4 has type ‘unsigned int’ [-Wformat]
/home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘const char_’ [-Wformat]
/home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%s’ expects argument of type ‘char_’, but argument 6 has type ‘unsigned int’ [-Wformat]
/home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%u’ expects a matching ‘unsigned int’ argument [-Wformat]
/home/pvpgn/src/bnetd/command.cpp: In function ‘int pvpgn::bnetd::handle_spoofc_command(pvpgn::bnetd::t_connection, const char_)’:
/home/pvpgn/src/bnetd/command.cpp:5228:71: error: cannot convert ‘std::string {aka std::basic_string}’ to ‘char_’ for argument ‘1’ to ‘int snprintf(char_, size_t, const char_, ...)’
/home/pvpgn/src/bnetd/command.cpp:5230:30: error: cannot convert ‘std::string {aka std::basic_string}’ to ‘const char_’ for argument ‘2’ to ‘void pvpgn::bnetd::do_whisper(pvpgn::bnetd::t_connection_, const char_, const char_)’
/home/pvpgn/src/bnetd/command.cpp: In function ‘int pvpgn::bnetd::handle_move_command(pvpgn::bnetd::t_connection, const char_)’:
/home/pvpgn/src/bnetd/command.cpp:5280:115: error: cannot convert ‘std::string {aka std::basic_string}’ to ‘char_’ for argument ‘1’ to ‘int snprintf(char_, size_t, const char_, ...)’
make[2]: *** [src/bnetd/CMakeFiles/bnetd.dir/command.o] Error 1
make[1]: *** [src/bnetd/CMakeFiles/bnetd.dir/all] Error 2
make: *** [all] Error 2

In file included from /home/pvpgn/src/bnetd/command.cpp:90:0: /home/pvpgn/src/bnetd/luainterface.h:61:28: warning: comma at end of enumerator list [-pedantic] /home/pvpgn/src/bnetd/command.cpp: In function ‘int pvpgn::bnetd::_handle_ladderinfo_command(pvpgn::bnetd::t_connection_, const char_)’: /home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%s’ expects argument of type ‘char_’, but argument 4 has type ‘unsigned int’ [-Wformat] /home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘const char_’ [-Wformat] /home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%s’ expects argument of type ‘char_’, but argument 6 has type ‘unsigned int’ [-Wformat] /home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%u’ expects a matching ‘unsigned int’ argument [-Wformat] /home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%s’ expects argument of type ‘char_’, but argument 4 has type ‘unsigned int’ [-Wformat] /home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘const char_’ [-Wformat] /home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%s’ expects argument of type ‘char_’, but argument 6 has type ‘unsigned int’ [-Wformat] /home/pvpgn/src/bnetd/command.cpp:3995:92: warning: format ‘%u’ expects a matching ‘unsigned int’ argument [-Wformat] /home/pvpgn/src/bnetd/command.cpp: In function ‘int pvpgn::bnetd::_handle_spoofc_command(pvpgn::bnetd::t_connection_, const char_)’: /home/pvpgn/src/bnetd/command.cpp:5228:71: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘char_’ for argument ‘1’ to ‘int snprintf(char_, size_t, const char_, ...)’ /home/pvpgn/src/bnetd/command.cpp:5230:30: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const char_’ for argument ‘2’ to ‘void pvpgn::bnetd::do_whisper(pvpgn::bnetd::t_connection_, const char_, const char_)’ /home/pvpgn/src/bnetd/command.cpp: In function ‘int pvpgn::bnetd::_handle_move_command(pvpgn::bnetd::t_connection_, const char_)’: /home/pvpgn/src/bnetd/command.cpp:5280:115: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘char_’ for argument ‘1’ to ‘int snprintf(char_, size_t, const char_, ...)’ make[2]: **\* [src/bnetd/CMakeFiles/bnetd.dir/command.o] Error 1 make[1]: **\* [src/bnetd/CMakeFiles/bnetd.dir/all] Error 2 make: **\* [all] Error 2
anonbyte commented 2014-08-27 12:32:21 -06:00 (Migrated from github.com)

my bad, lol

my bad, lol
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Techwizz/pvpgn-server#91
No description provided.