Diego Ribeiro
New Member
- Joined
- Dec 28, 2013
- Messages
- 4
- Reaction score
- 0
I have these errors when trying to compile a sources 8.6 with cast system on my linux ubuntu 13.10
Thank you in ..
Thank you in ..
Code:
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) {
^