changeset 4299:3f85db78c441

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 18:24:50 +0100
parents db3932f9660d
children b30a8de92ad9
files OrthancFramework/UnitTestsSources/LoggingTests.cpp OrthancServer/Resources/RunCppCheck.sh
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/LoggingTests.cpp	Thu Nov 05 18:21:03 2020 +0100
+++ b/OrthancFramework/UnitTestsSources/LoggingTests.cpp	Thu Nov 05 18:24:50 2020 +0100
@@ -380,7 +380,6 @@
   std::set<std::string> s;
   for (size_t i = 0; i < Logging::GetCategoriesCount(); i++)
   {
-    Logging::LogCategory c;
     ASSERT_TRUE(Logging::LookupCategory(c, Logging::GetCategoryName(i)));
     s.insert(Logging::GetCategoryName(i));
   }
--- a/OrthancServer/Resources/RunCppCheck.sh	Thu Nov 05 18:21:03 2020 +0100
+++ b/OrthancServer/Resources/RunCppCheck.sh	Thu Nov 05 18:24:50 2020 +0100
@@ -14,12 +14,12 @@
 knownConditionTrueFalse:../../OrthancServer/Plugins/Engine/OrthancPlugins.cpp
 nullPointer:../../OrthancFramework/UnitTestsSources/RestApiTests.cpp:309
 nullPointerRedundantCheck:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp
-stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp:1103
+stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp:1163
 stlFindInsert:../../OrthancServer/Sources/OrthancWebDav.cpp:382
 stlFindInsert:../../OrthancServer/Sources/ServerIndex.cpp:400
 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h:50
 syntaxError:../../OrthancFramework/UnitTestsSources/ZipTests.cpp:129
-syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:337
+syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:319
 uninitMemberVar:../../OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp:427
 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp
 unreadVariable:../../OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp:714