diff Odbc/Plugins/OdbcIndex.cpp @ 369:557bc5ba3a5c

fix warnings
author Alain Mazy <am@osimis.io>
date Wed, 01 Feb 2023 16:25:37 +0100
parents 16aac0287485
children 3d6886f3e5b3
line wrap: on
line diff
--- a/Odbc/Plugins/OdbcIndex.cpp	Mon Dec 05 14:20:51 2022 +0100
+++ b/Odbc/Plugins/OdbcIndex.cpp	Wed Feb 01 16:25:37 2023 +0100
@@ -367,7 +367,7 @@
 
     OrthancPluginResourceType type;
     bool hasParent;
-    int64_t parentId;
+    int64_t parentId = 0;
 
     {
       DatabaseManager::CachedStatement lookupResource(
@@ -462,7 +462,7 @@
 
     bool hasRemainingAncestor = false;
     std::string remainingAncestor;
-    OrthancPluginResourceType ancestorType;
+    OrthancPluginResourceType ancestorType = OrthancPluginResourceType_None;
     
     if (hasParent)
     {