Jump to content
  • 0

error on compile server last vers


Question

Posted

i got warning when compile server 

In file included from include/yaml-cpp/node/detail/node.h:14:0,
                 from src/node_data.cpp:7:
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_mark(const YAML::Mark&)’:
include/yaml-cpp/node/detail/node_ref.h:33:35: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pData->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_type(YAML::NodeType::value)’:
include/yaml-cpp/node/detail/node_ref.h:34:39: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) { m_pData->set_type(type); }
                                       ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_tag(const string&)’:
include/yaml-cpp/node/detail/node_ref.h:35:40: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) { m_pData->set_tag(tag); }
                                        ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_scalar(const string&)’:
include/yaml-cpp/node/detail/node_ref.h:37:46: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) { m_pData->set_scalar(scalar); }
                                              ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_style(YAML::EmitterStyle::value)’:
include/yaml-cpp/node/detail/node_ref.h:38:45: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) { m_pData->set_style(style); }
                                             ^
In file included from src/node_data.cpp:7:0:
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_mark(const YAML::Mark&)’:
include/yaml-cpp/node/detail/node.h:69:35: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pRef->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_type(YAML::NodeType::value)’:
include/yaml-cpp/node/detail/node.h:71:39: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) {
                                       ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_scalar(const string&)’:
include/yaml-cpp/node/detail/node.h:80:46: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) {
                                              ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_tag(const string&)’:
include/yaml-cpp/node/detail/node.h:84:40: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) {
                                        ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_style(YAML::EmitterStyle::value)’:
include/yaml-cpp/node/detail/node.h:90:45: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) {
                                             ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_mark(const YAML::Mark&)’:
src/node_data.cpp:31:42: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
 void node_data::set_mark(const Mark& mark) { m_mark = mark; }
                                          ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_type(YAML::NodeType::value)’:
src/node_data.cpp:33:46: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
 void node_data::set_type(NodeType::value type) {
                                              ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_tag(const string&)’:
src/node_data.cpp:64:47: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
 void node_data::set_tag(const std::string& tag) { m_tag = tag; }
                                               ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_style(YAML::EmitterStyle::value)’:
src/node_data.cpp:66:52: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
 void node_data::set_style(EmitterStyle::value style) { m_style = style; }
                                                    ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_scalar(const string&)’:
src/node_data.cpp:73:53: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
 void node_data::set_scalar(const std::string& scalar) {
                                                     ^
        CXX     src/nodebuilder.cpp
In file included from include/yaml-cpp/node/detail/node.h:14:0,
                 from src/nodebuilder.cpp:5:
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_mark(const YAML::Mark&)’:
include/yaml-cpp/node/detail/node_ref.h:33:35: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pData->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_type(YAML::NodeType::value)’:
include/yaml-cpp/node/detail/node_ref.h:34:39: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) { m_pData->set_type(type); }
                                       ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_tag(const string&)’:
include/yaml-cpp/node/detail/node_ref.h:35:40: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) { m_pData->set_tag(tag); }
                                        ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_scalar(const string&)’:
include/yaml-cpp/node/detail/node_ref.h:37:46: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) { m_pData->set_scalar(scalar); }
                                              ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_style(YAML::EmitterStyle::value)’:
include/yaml-cpp/node/detail/node_ref.h:38:45: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) { m_pData->set_style(style); }
                                             ^
In file included from src/nodebuilder.cpp:5:0:
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_mark(const YAML::Mark&)’:
include/yaml-cpp/node/detail/node.h:69:35: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pRef->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_type(YAML::NodeType::value)’:
include/yaml-cpp/node/detail/node.h:71:39: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) {
                                       ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_scalar(const string&)’:
include/yaml-cpp/node/detail/node.h:80:46: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) {
                                              ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_tag(const string&)’:
include/yaml-cpp/node/detail/node.h:84:40: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) {
                                        ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_style(YAML::EmitterStyle::value)’:
include/yaml-cpp/node/detail/node.h:90:45: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) {
                                             ^
        CXX     src/exp.cpp

 

i use gcc/g++ 4.9

how to fix that??

15 answers to this question

Recommended Posts

  • 1
Posted (edited)
On 8/2/2017 at 3:57 AM, WhiteEagle said:

I've the error too with GGC 5.3

are you sure? im using it now.. and there everything is fine

On 8/1/2017 at 3:16 PM, melv0 said:

need fix asap :(

try installing the gcc from the source code if you can or

if you use centos 64 (centos 32 can't do step below... i have reinstalling my vps 3 times in blind didn't know this haha, hope save you the trouble) you can do this step to upgrade the gcc into version 5.3

yum install centos-release-scl
yum install devtoolset-4-gcc*
scl enable devtoolset-4 bash
which gcc
gcc --version

dev need to update the guide, i spend the entire night with google to upgrade gcc haha... since afaik there is no linux distro come with gcc 5 by default.

the start guide is outdated by now and sorry i didn't know how to contribute directly into the wiki

and since im not aware if what im doing is right or not, i didn't have the knowledge on this mater, just by reading from various source how to do this and that.. and if error come up I will just ask anybody (including google) to resolve

thats it

Edited by Litro Endemic
  • 0
Posted
14 hours ago, melv0 said:

i got warning when compile server 


In file included from include/yaml-cpp/node/detail/node.h:14:0,
                 from src/node_data.cpp:7:
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_mark(const YAML::Mark&)’:
include/yaml-cpp/node/detail/node_ref.h:33:35: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pData->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_type(YAML::NodeType::value)’:
include/yaml-cpp/node/detail/node_ref.h:34:39: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) { m_pData->set_type(type); }
                                       ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_tag(const string&)’:
include/yaml-cpp/node/detail/node_ref.h:35:40: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) { m_pData->set_tag(tag); }
                                        ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_scalar(const string&)’:
include/yaml-cpp/node/detail/node_ref.h:37:46: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) { m_pData->set_scalar(scalar); }
                                              ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_style(YAML::EmitterStyle::value)’:
include/yaml-cpp/node/detail/node_ref.h:38:45: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) { m_pData->set_style(style); }
                                             ^
In file included from src/node_data.cpp:7:0:
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_mark(const YAML::Mark&)’:
include/yaml-cpp/node/detail/node.h:69:35: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pRef->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_type(YAML::NodeType::value)’:
include/yaml-cpp/node/detail/node.h:71:39: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) {
                                       ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_scalar(const string&)’:
include/yaml-cpp/node/detail/node.h:80:46: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) {
                                              ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_tag(const string&)’:
include/yaml-cpp/node/detail/node.h:84:40: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) {
                                        ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_style(YAML::EmitterStyle::value)’:
include/yaml-cpp/node/detail/node.h:90:45: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) {
                                             ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_mark(const YAML::Mark&)’:
src/node_data.cpp:31:42: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
 void node_data::set_mark(const Mark& mark) { m_mark = mark; }
                                          ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_type(YAML::NodeType::value)’:
src/node_data.cpp:33:46: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
 void node_data::set_type(NodeType::value type) {
                                              ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_tag(const string&)’:
src/node_data.cpp:64:47: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
 void node_data::set_tag(const std::string& tag) { m_tag = tag; }
                                               ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_style(YAML::EmitterStyle::value)’:
src/node_data.cpp:66:52: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
 void node_data::set_style(EmitterStyle::value style) { m_style = style; }
                                                    ^
src/node_data.cpp: In member function ‘void YAML::detail::node_data::set_scalar(const string&)’:
src/node_data.cpp:73:53: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
 void node_data::set_scalar(const std::string& scalar) {
                                                     ^
        CXX     src/nodebuilder.cpp
In file included from include/yaml-cpp/node/detail/node.h:14:0,
                 from src/nodebuilder.cpp:5:
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_mark(const YAML::Mark&)’:
include/yaml-cpp/node/detail/node_ref.h:33:35: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pData->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_type(YAML::NodeType::value)’:
include/yaml-cpp/node/detail/node_ref.h:34:39: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) { m_pData->set_type(type); }
                                       ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_tag(const string&)’:
include/yaml-cpp/node/detail/node_ref.h:35:40: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) { m_pData->set_tag(tag); }
                                        ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_scalar(const string&)’:
include/yaml-cpp/node/detail/node_ref.h:37:46: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) { m_pData->set_scalar(scalar); }
                                              ^
include/yaml-cpp/node/detail/node_ref.h: In member function ‘void YAML::detail::node_ref::set_style(YAML::EmitterStyle::value)’:
include/yaml-cpp/node/detail/node_ref.h:38:45: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) { m_pData->set_style(style); }
                                             ^
In file included from src/nodebuilder.cpp:5:0:
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_mark(const YAML::Mark&)’:
include/yaml-cpp/node/detail/node.h:69:35: warning: declaration of ‘mark’ shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pRef->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_type(YAML::NodeType::value)’:
include/yaml-cpp/node/detail/node.h:71:39: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) {
                                       ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_scalar(const string&)’:
include/yaml-cpp/node/detail/node.h:80:46: warning: declaration of ‘scalar’ shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) {
                                              ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_tag(const string&)’:
include/yaml-cpp/node/detail/node.h:84:40: warning: declaration of ‘tag’ shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) {
                                        ^
include/yaml-cpp/node/detail/node.h: In member function ‘void YAML::detail::node::set_style(YAML::EmitterStyle::value)’:
include/yaml-cpp/node/detail/node.h:90:45: warning: declaration of ‘style’ shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) {
                                             ^
        CXX     src/exp.cpp

 

i use gcc/g++ 4.9

how to fix that??

I've the error too with GGC 5.3

  • 0
Posted

        CC      scanctx.c
        CC      scanner.c
        CC      strbuf.c
        AR      obj/libconfig.a
make[1]: Leaving directory `/home/rathena/3rdparty/libconfig'
make[1]: Entering directory `/home/rathena/3rdparty/yaml-cpp'
        MKDIR   obj/src/contrib
        CXX     src/emitfromevents.cpp
        CXX     src/directives.cpp
        CXX     src/nodeevents.cpp
In file included from include/yaml-cpp/node/detail/node.h:14:0,
                 from src/nodeevents.cpp:4:
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_mark(const YAML::Mark&)':
include/yaml-cpp/node/detail/node_ref.h:33:35: warning: declaration of 'mark' shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pData->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_type(YAML::NodeType::value)':
include/yaml-cpp/node/detail/node_ref.h:34:39: warning: declaration of 'type' shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) { m_pData->set_type(type); }
                                       ^
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_tag(const string&)':
include/yaml-cpp/node/detail/node_ref.h:35:40: warning: declaration of 'tag' shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) { m_pData->set_tag(tag); }
                                        ^
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_scalar(const string&)':
include/yaml-cpp/node/detail/node_ref.h:37:46: warning: declaration of 'scalar' shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) { m_pData->set_scalar(scalar); }
                                              ^
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_style(YAML::EmitterStyle::value)':
include/yaml-cpp/node/detail/node_ref.h:38:45: warning: declaration of 'style' shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) { m_pData->set_style(style); }
                                             ^
In file included from src/nodeevents.cpp:4:0:
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_mark(const YAML::Mark&)':
include/yaml-cpp/node/detail/node.h:69:35: warning: declaration of 'mark' shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pRef->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_type(YAML::NodeType::value)':
include/yaml-cpp/node/detail/node.h:71:39: warning: declaration of 'type' shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) {
                                       ^
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_scalar(const string&)':
include/yaml-cpp/node/detail/node.h:80:46: warning: declaration of 'scalar' shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) {
                                              ^
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_tag(const string&)':
include/yaml-cpp/node/detail/node.h:84:40: warning: declaration of 'tag' shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) {
                                        ^
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_style(YAML::EmitterStyle::value)':
include/yaml-cpp/node/detail/node.h:90:45: warning: declaration of 'style' shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) {
                                             ^
        CXX     src/regex_yaml.cpp
        CXX     src/scanner.cpp
src/scanner.cpp: In member function 'void YAML::Scanner::ThrowParserException(const string&) const':
src/scanner.cpp:379:8: warning: declaration of 'mark' shadows a member of 'this' [-Wshadow]
   Mark mark = Mark::null_mark();
        ^
        CXX     src/exp.cpp
        CXX     src/parse.cpp
In file included from include/yaml-cpp/node/detail/node.h:14:0,
                 from include/yaml-cpp/node/impl.h:13,
                 from src/parse.cpp:7:
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_mark(const YAML::Mark&)':
include/yaml-cpp/node/detail/node_ref.h:33:35: warning: declaration of 'mark' shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pData->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_type(YAML::NodeType::value)':
include/yaml-cpp/node/detail/node_ref.h:34:39: warning: declaration of 'type' shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) { m_pData->set_type(type); }
                                       ^
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_tag(const string&)':
include/yaml-cpp/node/detail/node_ref.h:35:40: warning: declaration of 'tag' shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) { m_pData->set_tag(tag); }
                                        ^
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_scalar(const string&)':
include/yaml-cpp/node/detail/node_ref.h:37:46: warning: declaration of 'scalar' shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) { m_pData->set_scalar(scalar); }
                                              ^
include/yaml-cpp/node/detail/node_ref.h: In member function 'void YAML::detail::node_ref::set_style(YAML::EmitterStyle::value)':
include/yaml-cpp/node/detail/node_ref.h:38:45: warning: declaration of 'style' shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) { m_pData->set_style(style); }
                                             ^
In file included from include/yaml-cpp/node/impl.h:13:0,
                 from src/parse.cpp:7:
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_mark(const YAML::Mark&)':
include/yaml-cpp/node/detail/node.h:69:35: warning: declaration of 'mark' shadows a member of 'this' [-Wshadow]
   void set_mark(const Mark& mark) { m_pRef->set_mark(mark); }
                                   ^
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_type(YAML::NodeType::value)':
include/yaml-cpp/node/detail/node.h:71:39: warning: declaration of 'type' shadows a member of 'this' [-Wshadow]
   void set_type(NodeType::value type) {
                                       ^
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_scalar(const string&)':
include/yaml-cpp/node/detail/node.h:80:46: warning: declaration of 'scalar' shadows a member of 'this' [-Wshadow]
   void set_scalar(const std::string& scalar) {
                                              ^
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_tag(const string&)':
include/yaml-cpp/node/detail/node.h:84:40: warning: declaration of 'tag' shadows a member of 'this' [-Wshadow]
   void set_tag(const std::string& tag) {
                                        ^
include/yaml-cpp/node/detail/node.h: In member function 'void YAML::detail::node::set_style(YAML::EmitterStyle::value)':
include/yaml-cpp/node/detail/node.h:90:45: warning: declaration of 'style' shadows a member of 'this' [-Wshadow]
   void set_style(EmitterStyle::value style) {
                                             ^
        CXX     src/scanscalar.cpp

  • 0
Posted

These are just shadow warnings, nothing major from stopping you from running a server.

To get these warnings suppressed you need to make sure your G++ is version 5 or newer. Make sure you run

./configure

after you update your G++.

  • 0
Posted
On 8/3/2017 at 11:58 PM, Aleos said:

These are just shadow warnings, nothing major from stopping you from running a server.

To get these warnings suppressed you need to make sure your G++ is version 5 or newer. Make sure you run


./configure

after you update your G++.

yeah i did but still get :D 

  • 0
Posted (edited)

i still got warning but not to much 

Quote

scanner.h:208:17: warning: type of ‘libconfig_yy_scan_string’ does not match original declaration [-Wlto-type-mismatch]
scanner.c:1964:17: note: ‘libconfig_yy_scan_string’ was previously declared here
scanner.c:1964:17: note: code may be misoptimized unless -fno-strict-aliasing is used
scanner.h:202:6: warning: type of ‘libconfig_yy_delete_buffer’ does not match original declaration [-Wlto-type-mismatch]
scanner.c:1743:10: note: ‘libconfig_yy_delete_buffer’ was previously declared here
scanner.c:1743:10: note: code may be misoptimized unless -fno-strict-aliasing is used
make[1]: Leaving directory '/root/rAthena1/src/char'
make[1]: Entering directory '/root/rAthena1/src/map'

scanner.h:208:17: warning: type of ‘libconfig_yy_scan_string’ does not match original declaration [-Wlto-type-mismatch]
scanner.c:1964:17: note: ‘libconfig_yy_scan_string’ was previously declared here
scanner.c:1964:17: note: code may be misoptimized unless -fno-strict-aliasing is used
scanner.h:202:6: warning: type of ‘libconfig_yy_delete_buffer’ does not match original declaration [-Wlto-type-mismatch]
scanner.c:1743:10: note: ‘libconfig_yy_delete_buffer’ was previously declared here
scanner.c:1743:10: note: code may be misoptimized unless -fno-strict-aliasing is used

and this

Quote

script.c: In function ‘pop_stack’:
script.c:3473:2: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
  else if( st->start > start ) st->start = start;
  ^~~~
script.c:3474:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
       if( st->end > end )   st->end -= end - start;
       ^~
script.c:3475:2: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
  else if( st->end > start ) st->end = start;
  ^~~~
script.c:3476:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
       if( stack->defsp > end )   stack->defsp -= end - start;

i use gcc/g++ 5 

OS debian 8

last ver and pure

Edited by melv0

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...