diff --git a/source/RobotAPI/components/KITHandUnit/KITHandUnit.cpp b/source/RobotAPI/components/KITHandUnit/KITHandUnit.cpp
index e7d20106efb18cad009e22a32e3528d6c8197e06..fb4cb1d94baf63e8013099a443d18890fb5c6352 100644
--- a/source/RobotAPI/components/KITHandUnit/KITHandUnit.cpp
+++ b/source/RobotAPI/components/KITHandUnit/KITHandUnit.cpp
@@ -165,7 +165,8 @@ namespace armarx
             {
                 const std::uint64_t pos = std::clamp(
                                               static_cast<std::uint64_t>(pair.second * KITHand::ControlOptions::maxPosFingers),
-                                              0, KITHand::ControlOptions::maxPosFingers);
+                                              static_cast<std::uint64_t>(0),
+                                              KITHand::ControlOptions::maxPosFingers);
                 ARMARX_DEBUG << deactivateSpam(1, std::to_string(pos)) << "set fingers " << pos;
                 _driver->sendFingersPosition(pos);
             }
@@ -173,7 +174,8 @@ namespace armarx
             {
                 const std::uint64_t pos = std::clamp(
                                               static_cast<std::uint64_t>(pair.second * KITHand::ControlOptions::maxPosThumb),
-                                              0, KITHand::ControlOptions::maxPosThumb);
+                                              static_cast<std::uint64_t>(0),
+                                              KITHand::ControlOptions::maxPosThumb);
                 ARMARX_DEBUG << deactivateSpam(1, std::to_string(pos)) << "set thumb " << pos;
                 _driver->sendThumbPosition(pos);
             }
diff --git a/source/RobotAPI/components/KITProstheticHandUnit/KITProstheticHandUnit.cpp b/source/RobotAPI/components/KITProstheticHandUnit/KITProstheticHandUnit.cpp
index a36bdd9da8f92a45213f4b8a388893e03a5f7f9d..6a30e57f49724047abd7eeab04a3f8c6065b45a6 100644
--- a/source/RobotAPI/components/KITProstheticHandUnit/KITProstheticHandUnit.cpp
+++ b/source/RobotAPI/components/KITProstheticHandUnit/KITProstheticHandUnit.cpp
@@ -153,7 +153,8 @@ namespace armarx
             {
                 const std::uint64_t pos = std::clamp(
                                               static_cast<std::uint64_t>(pair.second * _driver->getMaxPosFingers()),
-                                              0, _driver->getMaxPosFingers());
+                                              static_cast<std::uint64_t>(0),
+                                              _driver->getMaxPosFingers());
                 ARMARX_INFO << "set fingers " << pos;
                 _driver->sendFingerPWM(200, 2999, pos);
                 // fix until hw driver is fixed to handle multiple commands at the same time
@@ -163,7 +164,8 @@ namespace armarx
             {
                 const std::uint64_t pos = std::clamp(
                                               static_cast<std::uint64_t>(pair.second * _driver->getMaxPosThumb()),
-                                              0, _driver->getMaxPosThumb());
+                                              static_cast<std::uint64_t>(0),
+                                              _driver->getMaxPosThumb());
                 ARMARX_INFO << "set thumb " << pos;
                 _driver->sendThumbPWM(200, 2999, pos);
                 // fix until hw driver is fixed to handle multiple commands at the same time
@@ -197,7 +199,7 @@ namespace armarx
         shapeNames->addVariant(currentPreshape);
     }
 
-    void KITProstheticHandUnit::setShape(const std::string& shapeName, const Ice::Current& c)
+    void KITProstheticHandUnit::setShape(const std::string& shapeName, const Ice::Current&)
     {
         if (std::regex_match(shapeName, std::regex{"[gG](0|[1-9][0-9]*)"}))
         {