From 1599e58ab77a806645deb3f22eec29eb32d86f1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tobias=20Gr=C3=B6ger?= <tobias.groeger@student.kit.edu>
Date: Wed, 8 Mar 2023 02:15:47 +0100
Subject: [PATCH] Fix discarding result of synchRobot

synchronizeRobot has been marked as nodiscard which fails compilation.
---
 .../VisionX/components/armem/server/HumanMemory/HumanMemory.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/VisionX/components/armem/server/HumanMemory/HumanMemory.cpp b/source/VisionX/components/armem/server/HumanMemory/HumanMemory.cpp
index cfd0f2ebe..a68a34386 100644
--- a/source/VisionX/components/armem/server/HumanMemory/HumanMemory.cpp
+++ b/source/VisionX/components/armem/server/HumanMemory/HumanMemory.cpp
@@ -132,7 +132,7 @@ namespace armarx::armem::server::human_memory
         }();
 
         // synchronize robot
-        virtualRobotReaderPlugin->get().synchronizeRobot(*robot, timestamp);
+        ARMARX_CHECK(virtualRobotReaderPlugin->get().synchronizeRobot(*robot, timestamp));
 
         return robot;
     }
-- 
GitLab