Fix compiler warnings
This commit is contained in:
parent
8fff48ed7b
commit
21ab4413aa
|
@ -706,8 +706,8 @@ private:
|
||||||
" foo[1].x = 123;\n" // <- x should get a variable() pointer
|
" foo[1].x = 123;\n" // <- x should get a variable() pointer
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
Settings settings;
|
Settings localsettings;
|
||||||
Tokenizer tokenizer(&settings, this);
|
Tokenizer tokenizer(&localsettings, this);
|
||||||
std::istringstream istr(code);
|
std::istringstream istr(code);
|
||||||
tokenizer.tokenize(istr, "test.cpp");
|
tokenizer.tokenize(istr, "test.cpp");
|
||||||
|
|
||||||
|
@ -726,8 +726,8 @@ private:
|
||||||
" foo[1][2].x = 123;\n" // <- x should get a variable() pointer
|
" foo[1][2].x = 123;\n" // <- x should get a variable() pointer
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
Settings settings;
|
Settings localsettings;
|
||||||
Tokenizer tokenizer(&settings, this);
|
Tokenizer tokenizer(&localsettings, this);
|
||||||
std::istringstream istr(code);
|
std::istringstream istr(code);
|
||||||
tokenizer.tokenize(istr, "test.cpp");
|
tokenizer.tokenize(istr, "test.cpp");
|
||||||
|
|
||||||
|
@ -746,8 +746,8 @@ private:
|
||||||
" (foo[1]).x = 123;\n" // <- x should get a variable() pointer
|
" (foo[1]).x = 123;\n" // <- x should get a variable() pointer
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
Settings settings;
|
Settings localsettings;
|
||||||
Tokenizer tokenizer(&settings, this);
|
Tokenizer tokenizer(&localsettings, this);
|
||||||
std::istringstream istr(code);
|
std::istringstream istr(code);
|
||||||
tokenizer.tokenize(istr, "test.cpp");
|
tokenizer.tokenize(istr, "test.cpp");
|
||||||
|
|
||||||
|
@ -1321,11 +1321,11 @@ private:
|
||||||
errout.str("");
|
errout.str("");
|
||||||
|
|
||||||
// Check..
|
// Check..
|
||||||
Settings settings;
|
Settings localsettings;
|
||||||
settings.debugwarnings = debug;
|
localsettings.debugwarnings = debug;
|
||||||
|
|
||||||
// Tokenize..
|
// Tokenize..
|
||||||
Tokenizer tokenizer(&settings, this);
|
Tokenizer tokenizer(&localsettings, this);
|
||||||
std::istringstream istr(code);
|
std::istringstream istr(code);
|
||||||
tokenizer.tokenize(istr, "test.cpp");
|
tokenizer.tokenize(istr, "test.cpp");
|
||||||
tokenizer.simplifyTokenList2();
|
tokenizer.simplifyTokenList2();
|
||||||
|
|
Loading…
Reference in New Issue