diff --git a/benchmarks/others/materialScanEta.cxx b/benchmarks/others/materialScanEta.cxx
index 525bd51c90a5e0d4f0f112f93ca3856087c30a27..1dc43c3ffe45f51c4989d3e88b2ee50e0bfef33d 100644
--- a/benchmarks/others/materialScanEta.cxx
+++ b/benchmarks/others/materialScanEta.cxx
@@ -52,19 +52,19 @@ void materialScanEta(
   // check inputs
   if (etamin > etamax) {
     std::cout << "Error: ordered eta range required" << std::endl;
-    return -1;
+    return;
   }
   if (rhomax <= 0.0) {
     std::cout << "Error: positive rhomax required" << std::endl;
-    return -1;
+    return;
   }
   if (znmax <= 0.0) {
     std::cout << "Error: positive znmax required" << std::endl;
-    return -1;
+    return;
   }
   if (zpmax <= 0.0) {
     std::cout << "Error: positive zpmax required" << std::endl;
-    return -1;
+    return;
   }
 
   // get material scans
diff --git a/benchmarks/others/materialScanEtaPhi.cxx b/benchmarks/others/materialScanEtaPhi.cxx
index dc6705580a22cd9252a9491b42cd794eb8fe222a..5051ca1b5d70d7ef751235d3527ff1c3dea93bfa 100644
--- a/benchmarks/others/materialScanEtaPhi.cxx
+++ b/benchmarks/others/materialScanEtaPhi.cxx
@@ -21,23 +21,23 @@ void materialScanEtaPhi(
   // check inputs
   if (etamin > etamax) {
     std::cout << "Error: ordered eta range required" << std::endl;
-    return -1;
+    return;
   }
   if (phimin > phimax) {
     std::cout << "Error: ordered phi range required" << std::endl;
-    return -1;
+    return;
   }
   if (rhomax <= 0.0) {
     std::cout << "Error: positive rhomax required" << std::endl;
-    return -1;
+    return;
   }
   if (znmax <= 0.0) {
     std::cout << "Error: positive znmax required" << std::endl;
-    return -1;
+    return;
   }
   if (zpmax <= 0.0) {
     std::cout << "Error: positive zpmax required" << std::endl;
-    return -1;
+    return;
   }
 
   // get material scans