Natan Beckman
Well-Known Member
Code:
otserv.cpp: In function âvoid otserv(StringVec, ServiceManager*)â:
otserv.cpp:580:40: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
if(result = db->storeQuery(query.str()))
^
otserv.cpp:588:55: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
if(result_ = db->storeQuery(query_playeritems.str()))
^
otserv.cpp:607:60: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
if(result_ = db->storeQuery(query_playerdepotitems.str()))
^
otserv.cpp:626:53: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
if(result_ = db->storeQuery(query_tileitems.str()))
^
cc1plus: all warnings being treated as errors
make[1]: *** [otserv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/teste'
make: *** [all] Error 2
root@ns4010900:/home/teste#
Does anyone have any idea?