]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3919] Fixed cppcheck suppressions
authorFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 12:58:04 +0000 (14:58 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 12:58:04 +0000 (14:58 +0200)
src/lib/config/tests/module_spec_unittests.cc

index 9e61c9ea122c3191024cae2e164682fd4eec2659..f43aa53964c8cc540c1120380e5f71ef411ecf05 100644 (file)
@@ -290,7 +290,6 @@ TEST(ModuleSpec, CheckFormat) {
     std::vector<std::string> specs;
     ConstElementPtr el;
 
-    // cppcheck-suppress redundantAssignment
     specs.clear();
     item_default = "\"item_default\": \"2011-05-27T19:42:57Z\",";
     item_format  = "\"item_format\": \"date-time\"";
@@ -307,10 +306,12 @@ TEST(ModuleSpec, CheckFormat) {
     item_default = "";
     item_format  = "\"item_format\": \"date\"";
     specs.push_back("," + item_format);
+    // cppcheck-suppress redundantAssignment
     item_default = "";
     item_format  = "\"item_format\": \"time\"";
     specs.push_back("," + item_format);
 
+    // cppcheck-suppress redundantAssignment
     item_default = "\"item_default\": \"a\"";
     specs.push_back("," + item_default);
     item_default = "\"item_default\": \"b\"";