Ir para conteúdo

DiegoRibeiro09

Campones
  • Total de itens

    2
  • Registro em

  • Última visita

Posts postados por DiegoRibeiro09

  1. player.h:185:31: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCasting(bool c);
                                   ^
    player.h:186:43: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCastPassword(std::string p) {cast.password = p;};
                                               ^
    player.h:188:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCastDescription(std::string desc) {
                                                     ^
    player.h:196:44: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const addCastViewer(ProtocolGame* pg) {
                                                ^
    player.h:205:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const removeCastViewer(uint32_t id) {
                                              ^
    player.h:224:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const kickCastViewers() {
                                  ^
    player.h:236:48: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const kickCastViewerByName(std::string n) {
                                                    ^
    In file included from house.h:27:0,
                     from beds.cpp:20:
    player.h:245:38: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const addCastBan(std::string n) {
                                          ^
    player.h:255:41: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const removeCastBan(std::string n) {
                                             ^
    player.h:266:39: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const addCastMute(std::string n) {
                                           ^
    player.h:275:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const removeCastMute(std::string n) {
                                              ^
    In file included from house.h:27:0,
                     from beds.cpp:20:
    player.h: In member function ‘const void Player::kickCastViewers()’:
    player.h:233:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
        cast = PlayerCast::PlayerCast();
                                      ^
    player.h:233:34: error:   for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
    In file included from house.h:27:0,
                     from beds.cpp:20:
    player.h: In member function ‘const bool Player::addCastBan(std::string)’:
    player.h:250:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
        cast.bans.push_back(CastBan::CastBan(n, ip));
                                                  ^
    player.h:250:46: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
    player.h: In member function ‘const bool Player::addCastMute(std::string)’:
    player.h:271:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
        cast.muted.push_back(CastBan::CastBan(n, ip));
                                                   ^
    player.h:271:47: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
    cc1plus: all warnings being treated as errors
    make[1]: ** [beds.o] Erro 1
    make[1]: ** Esperando que outros processos terminem.
    mv -f .deps/baseevents.Tpo .deps/baseevents.Po
    In file included from game.h:30:0,
                     from combat.cpp:23:
    player.h:185:31: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCasting(bool c);
                                   ^
    player.h:186:43: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCastPassword(std::string p) {cast.password = p;};
                                               ^
    player.h:188:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCastDescription(std::string desc) {
                                                     ^
    player.h:196:44: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const addCastViewer(ProtocolGame* pg) {
                                                ^
    player.h:205:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const removeCastViewer(uint32_t id) {
                                              ^
    player.h:224:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const kickCastViewers() {
                                  ^
    player.h:236:48: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const kickCastViewerByName(std::string n) {
                                                    ^
    In file included from game.h:30:0,
                     from combat.cpp:23:
    player.h:245:38: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const addCastBan(std::string n) {
                                          ^
    player.h:255:41: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const removeCastBan(std::string n) {
                                             ^
    player.h:266:39: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const addCastMute(std::string n) {
                                           ^
    player.h:275:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const removeCastMute(std::string n) {
                                              ^
    In file included from game.h:30:0,
                     from combat.cpp:23:
    player.h: In member function ‘const void Player::kickCastViewers()’:
    player.h:233:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
        cast = PlayerCast::PlayerCast();
                                      ^
    player.h:233:34: error:   for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
    In file included from game.h:30:0,
                     from combat.cpp:23:
    player.h: In member function ‘const bool Player::addCastBan(std::string)’:
    player.h:250:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
        cast.bans.push_back(CastBan::CastBan(n, ip));
                                                  ^
    player.h:250:46: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
    player.h: In member function ‘const bool Player::addCastMute(std::string)’:
    player.h:271:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
        cast.muted.push_back(CastBan::CastBan(n, ip));
                                                   ^
    player.h:271:47: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
    cc1plus: all warnings being treated as errors
    make[1]: ** [combat.o] Erro 1
    In file included from actions.cpp:23:0:
    player.h:185:31: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCasting(bool c);
                                   ^
    player.h:186:43: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCastPassword(std::string p) {cast.password = p;};
                                               ^
    player.h:188:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCastDescription(std::string desc) {
                                                     ^
    player.h:196:44: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const addCastViewer(ProtocolGame* pg) {
                                                ^
    player.h:205:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const removeCastViewer(uint32_t id) {
                                              ^
    player.h:224:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const kickCastViewers() {
                                  ^
    player.h:236:48: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const kickCastViewerByName(std::string n) {
                                                    ^
    In file included from actions.cpp:23:0:
    player.h:245:38: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const addCastBan(std::string n) {
                                          ^
    player.h:255:41: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const removeCastBan(std::string n) {
                                             ^
    player.h:266:39: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const addCastMute(std::string n) {
                                           ^
    player.h:275:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const removeCastMute(std::string n) {
                                              ^
    In file included from actions.cpp:23:0:
    player.h: In member function ‘const void Player::kickCastViewers()’:
    player.h:233:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
        cast = PlayerCast::PlayerCast();
                                      ^
    player.h:233:34: error:   for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
    In file included from actions.cpp:23:0:
    player.h: In member function ‘const bool Player::addCastBan(std::string)’:
    player.h:250:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
        cast.bans.push_back(CastBan::CastBan(n, ip));
                                                  ^
    player.h:250:46: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
    player.h: In member function ‘const bool Player::addCastMute(std::string)’:
    player.h:271:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
        cast.muted.push_back(CastBan::CastBan(n, ip));
                                                   ^
    player.h:271:47: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
    cc1plus: all warnings being treated as errors
    make[1]: ** [actions.o] Erro 1
    In file included from party.h:20:0,
                     from chat.h:24,
                     from chat.cpp:18:
    player.h:185:31: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCasting(bool c);
                                   ^
    player.h:186:43: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCastPassword(std::string p) {cast.password = p;};
                                               ^
    player.h:188:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const setCastDescription(std::string desc) {
                                                     ^
    player.h:196:44: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const addCastViewer(ProtocolGame* pg) {
                                                ^
    player.h:205:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const removeCastViewer(uint32_t id) {
                                              ^
    player.h:224:30: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const kickCastViewers() {
                                  ^
    player.h:236:48: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       void const kickCastViewerByName(std::string n) {
                                                    ^
    In file included from party.h:20:0,
                     from chat.h:24,
                     from chat.cpp:18:
    player.h:245:38: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const addCastBan(std::string n) {
                                          ^
    player.h:255:41: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const removeCastBan(std::string n) {
                                             ^
    player.h:266:39: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const addCastMute(std::string n) {
                                           ^
    player.h:275:42: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
       bool const removeCastMute(std::string n) {
                                              ^
    In file included from party.h:20:0,
                     from chat.h:24,
                     from chat.cpp:18:
    player.h: In member function ‘const void Player::kickCastViewers()’:
    player.h:233:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
        cast = PlayerCast::PlayerCast();
                                      ^
    player.h:233:34: error:   for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
    In file included from party.h:20:0,
                     from chat.h:24,
                     from chat.cpp:18:
    player.h: In member function ‘const bool Player::addCastBan(std::string)’:
    player.h:250:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
        cast.bans.push_back(CastBan::CastBan(n, ip));
                                                  ^
    player.h:250:46: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
    player.h: In member function ‘const bool Player::addCastMute(std::string)’:
    player.h:271:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
        cast.muted.push_back(CastBan::CastBan(n, ip));
                                                   ^
    player.h:271:47: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
    chat.cpp: In member function ‘ChatChannel* Chat::getChannel(Player*, uint16_t)’:
    chat.cpp:1144:10: error: converting ‘false’ to pointer type ‘ChatChannel*’ [-Werror=conversion-null]
       return false;
              ^
    cc1plus: all warnings being treated as errors
    make[1]: ** [chat.o] Erro 1
    make[1]: Saindo do diretório `/home/diego/Source'
    make: ** [all] Erro 2
    
    

    Tenho esses erro na hora de compilar no ubuntu 13.10, alguem dá uma luz por favor !

     

    Desde já agradeço ...

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...