Jump to content
  • 0

error on compile server last vers


LearningRO

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

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??

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   76
  • Joined:  06/13/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   7
  • Joined:  08/15/14
  • Last Seen:  

same here fresh pull from git. keep getting a lot of: 

shadows a member of 'this' [-Wshadow]

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   4
  • Joined:  11/15/11
  • Last Seen:  

I did saw somewhere that rathena now requires gcc 5

 

Edit:

here you go

 

Edited by randell1993
added link
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

2 hours ago, randell1993 said:

I did saw somewhere that rathena now requires gcc 5

 

Edit:

here you go

 

omg update again :|

Btw thx for info :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  455
  • Reputation:   57
  • Joined:  08/28/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

18 hours ago, WhiteEagle said:

I've the error too with GGC 5.3

yeah me too but not too much :(

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   7
  • Joined:  12/30/11
  • Last Seen:  

        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

Link to comment
Share on other sites

  • 0

  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

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++.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

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 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

The script.c warnings were fixed in Git Hash: 43949b8. The libconfig warnings are of no concern.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

2 hours ago, Aleos said:

The script.c warnings were fixed in Git Hash: 43949b8. The libconfig warnings are of no concern.

oke thx bro :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  47
  • Reputation:   0
  • Joined:  12/24/17
  • Last Seen:  

i also having this problema. iam using fresh full from git

Link to comment
Share on other sites

  • -2

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

need fix asap :(

Link to comment
Share on other sites

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.

×
×
  • Create New...