diff --git a/runtime/domain/block_forest.cpp b/runtime/domain/block_forest.cpp
index 7f0bb76fb35dbdcf5735c3fba10bfee595f3fd1b..92555fa81cef19f6cbf456bea39a1c79a9bf3427 100644
--- a/runtime/domain/block_forest.cpp
+++ b/runtime/domain/block_forest.cpp
@@ -252,7 +252,7 @@ void BlockForest::initialize(int *argc, char ***argv) {
 }
 
 void BlockForest::initializeWorkloadBalancer() {
-    const std::string algorithm = "morton";
+    std::string algorithm = "morton";
     real_t baseWeight = 1.0;
     real_t metisipc2redist = 1.0;
     size_t regridMin = 10;
diff --git a/runtime/domain/regular_6d_stencil.cpp b/runtime/domain/regular_6d_stencil.cpp
index e02f0a3ada55cb5d87e2df465ae21ad535f1978a..aa276793f75ab163e69e1dae067fdbc7c7aab151 100644
--- a/runtime/domain/regular_6d_stencil.cpp
+++ b/runtime/domain/regular_6d_stencil.cpp
@@ -101,19 +101,19 @@ int Regular6DStencil::isWithinSubdomain(real_t x, real_t y, real_t z) {
 
 void Regular6DStencil::copyRuntimeArray(const std::string& name, void *dest, const int size) {
     for(int d = 0; d < ndims; d++) {
-        if(name.compare('neighbor_ranks')) {
+        if(name.compare("neighbor_ranks")) {
             int *neighbor_ranks = static_cast<int *>(dest);
             neighbor_ranks[d * 2 + 0] = prev[d];
             neighbor_ranks[d * 2 + 1] = next[d];
         }
 
-        if(name.compare('pbc')) {
+        if(name.compare("pbc")) {
             int *pbc = static_cast<int *>(dest);
             pbc[d * 2 + 0] = pbc_prev[d];
             pbc[d * 2 + 1] = pbc_next[d];
         }
 
-        if(name.compare('subdom')) {
+        if(name.compare("subdom")) {
             real_t *subdom = static_cast<real_t *>(dest);
             subdom[d * 2 + 0] = subdom_min[d];
             subdom[d * 2 + 1] = subdom_max[d];