mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 07:25:18 +00:00
[3919] Fixed cppcheck suppressions
This commit is contained in:
@@ -290,7 +290,6 @@ TEST(ModuleSpec, CheckFormat) {
|
|||||||
std::vector<std::string> specs;
|
std::vector<std::string> specs;
|
||||||
ConstElementPtr el;
|
ConstElementPtr el;
|
||||||
|
|
||||||
// cppcheck-suppress redundantAssignment
|
|
||||||
specs.clear();
|
specs.clear();
|
||||||
item_default = "\"item_default\": \"2011-05-27T19:42:57Z\",";
|
item_default = "\"item_default\": \"2011-05-27T19:42:57Z\",";
|
||||||
item_format = "\"item_format\": \"date-time\"";
|
item_format = "\"item_format\": \"date-time\"";
|
||||||
@@ -307,10 +306,12 @@ TEST(ModuleSpec, CheckFormat) {
|
|||||||
item_default = "";
|
item_default = "";
|
||||||
item_format = "\"item_format\": \"date\"";
|
item_format = "\"item_format\": \"date\"";
|
||||||
specs.push_back("," + item_format);
|
specs.push_back("," + item_format);
|
||||||
|
// cppcheck-suppress redundantAssignment
|
||||||
item_default = "";
|
item_default = "";
|
||||||
item_format = "\"item_format\": \"time\"";
|
item_format = "\"item_format\": \"time\"";
|
||||||
specs.push_back("," + item_format);
|
specs.push_back("," + item_format);
|
||||||
|
|
||||||
|
// cppcheck-suppress redundantAssignment
|
||||||
item_default = "\"item_default\": \"a\"";
|
item_default = "\"item_default\": \"a\"";
|
||||||
specs.push_back("," + item_default);
|
specs.push_back("," + item_default);
|
||||||
item_default = "\"item_default\": \"b\"";
|
item_default = "\"item_default\": \"b\"";
|
||||||
|
Reference in New Issue
Block a user