Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Warning and pessimization fix in get_memory_map: a std::copy of a local variable...
[simgrid.git] / src / xbt / memory_map.cpp
index 29640c0..7d2888b 100644 (file)
@@ -167,7 +167,7 @@ XBT_PRIVATE std::vector<VmMap> get_memory_map(pid_t pid)
 
   std::free(line);
   std::fclose(fp);
-  return std::move(ret);
+  return ret;
 #else
   /* On FreeBSD, kinfo_getvmmap() could be used but mmap() support is disabled
      anyway. */