Skip to content

compilation gives a warning #683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mkm85 opened this issue Sep 28, 2017 · 0 comments
Closed

compilation gives a warning #683

mkm85 opened this issue Sep 28, 2017 · 0 comments
Assignees

Comments

@mkm85
Copy link

mkm85 commented Sep 28, 2017

[ 22%] Building CXX object src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_value.cpp.o
/home/mkm/sandbox/jsoncpp/src/lib_json/json_value.cpp: In member function ‘Json::Value Json::Value::removeMember(const string&)’:
/home/mkm/sandbox/jsoncpp/src/lib_json/json_value.cpp:1203:34: warning: ‘Json::Value Json::Value::removeMember(const char*)’ is deprecated:  [-Wdeprecated-declarations]
   return removeMember(key.c_str());
                                  ^
/home/mkm/sandbox/jsoncpp/src/lib_json/json_value.cpp:1190:7: note: declared here
 Value Value::removeMember(const char* key)
       ^~~~~

A possible solution is to call a shared non deprecated private function instead of calling one deprecated function from another deprecated function

@cdunn2001 cdunn2001 self-assigned this Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants