]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2726] Suppress cppcheck warning
authorMichal 'vorner' Vaner <vorner@vorner.cz>
Wed, 12 Jun 2013 10:06:20 +0000 (12:06 +0200)
committerMichal 'vorner' Vaner <vorner@vorner.cz>
Wed, 12 Jun 2013 10:06:20 +0000 (12:06 +0200)
src/lib/datasrc/tests/factory_unittest.cc

index 5a01a27a72bbdaa4b3ca5d39a444223a7c5bfc4f..2708e0ec0cd0e9e12c23d3f55940d4851ff410ea 100644 (file)
@@ -39,6 +39,8 @@ void
 pathtestHelper(const std::string& file, const std::string& expected_error) {
     std::string error;
     try {
+        // cppcheck-suppress unusedScopedObject We just check if it throws
+        // to create, not use it. That's OK.
         DataSourceClientContainer(file, ElementPtr());
     } catch (const DataSourceLibraryError& dsle) {
         error = dsle.what();