Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
clang complains about these seemingly unecessary std::move.
authordegomme <augustin.degomme@unibas.ch>
Fri, 4 Nov 2016 13:55:59 +0000 (14:55 +0100)
committerdegomme <augustin.degomme@unibas.ch>
Fri, 4 Nov 2016 13:55:59 +0000 (14:55 +0100)
src/mc/LivenessChecker.cpp
src/mc/VisitedState.cpp
src/xbt/backtrace_linux.cpp

index f573622..19e6347 100644 (file)
@@ -454,7 +454,7 @@ std::shared_ptr<Pair> LivenessChecker::newPair(Pair* current_pair, xbt_automaton
     next_pair->search_cycle = true;
   else
     next_pair->search_cycle = false;
     next_pair->search_cycle = true;
   else
     next_pair->search_cycle = false;
-  return std::move(next_pair);
+  return next_pair;
 }
 
 void LivenessChecker::backtrack()
 }
 
 void LivenessChecker::backtrack()
index 3aa0e5f..5d547bf 100644 (file)
@@ -118,7 +118,7 @@ std::unique_ptr<simgrid::mc::VisitedState> VisitedStates::addVisitedState(
           old_state->num, new_state->num);
 
         visited_state = std::move(new_state);
           old_state->num, new_state->num);
 
         visited_state = std::move(new_state);
-        return std::move(old_state);
+        return old_state;
       }
     }
 
       }
     }
 
@@ -129,4 +129,4 @@ std::unique_ptr<simgrid::mc::VisitedState> VisitedStates::addVisitedState(
 }
 
 }
 }
 
 }
-}
\ No newline at end of file
+}
index e37bbcc..0e191b4 100644 (file)
@@ -158,7 +158,7 @@ std::vector<std::string> resolveBacktrace(
   if (binary_name.empty()) {
     for (std::size_t i = 0; i < count; i++)
       result.push_back(simgrid::xbt::string_printf("%p", loc[i]));
   if (binary_name.empty()) {
     for (std::size_t i = 0; i < count; i++)
       result.push_back(simgrid::xbt::string_printf("%p", loc[i]));
-    return std::move(result);
+    return result;
   }
 
   // Create the system command for add2line:
   }
 
   // Create the system command for add2line: