mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-25 07:41:07 +01:00
maybe address warning
cmake -DCMAKE_BUILD_TYPE=debug -DJSONCPP_LIB_BUILD_STATIC=OFF -DJSONCPP_LIB_BUILD_SHARED=ON -G "Visual Studio 10" ../.. `potentially uninitialized local variable 'dist' (line 2212 of test_lib_json/main.cpp)`
This commit is contained in:
parent
eaa3fd8eca
commit
f57da48f48
@ -2203,7 +2203,7 @@ JSONTEST_FIXTURE(IteratorTest, distance) {
|
|||||||
Json::Value json;
|
Json::Value json;
|
||||||
json["k1"] = "a";
|
json["k1"] = "a";
|
||||||
json["k2"] = "b";
|
json["k2"] = "b";
|
||||||
int dist;
|
int dist = 0;
|
||||||
std::string str;
|
std::string str;
|
||||||
for (Json::ValueIterator it = json.begin(); it != json.end(); ++it) {
|
for (Json::ValueIterator it = json.begin(); it != json.end(); ++it) {
|
||||||
dist = it - json.begin();
|
dist = it - json.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user