Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to reduce the amount of warnings in StarPU compilation
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 14 Feb 2018 19:23:01 +0000 (20:23 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 14 Feb 2018 19:23:01 +0000 (20:23 +0100)
include/simgrid/msg.h
src/msg/msg_vm.cpp

index 131a7bb..4c7e2c2 100644 (file)
@@ -390,11 +390,8 @@ XBT_PUBLIC(msg_vm_t) MSG_vm_create_core(msg_host_t location, const char *name);
 XBT_PUBLIC(msg_vm_t) MSG_vm_create_multicore(msg_host_t pm, const char* name, int coreAmount);
 
 XBT_ATTRIB_DEPRECATED_v322("Use MSG_vm_create_migratable() from the live migration plugin: "
-                           "v3.22 will drop MSG_vm_create() completely.") static msg_vm_t
-    MSG_vm_create(msg_host_t ind_pm, const char* name, int coreAmount, int ramsize, int mig_netspeed, int dp_intensity)
-{
-  return sg_vm_create_migratable(ind_pm, name, coreAmount, ramsize, mig_netspeed, dp_intensity);
-}
+                           "v3.22 will drop MSG_vm_create() completely.") XBT_PUBLIC(msg_vm_t)
+    MSG_vm_create(msg_host_t ind_pm, const char* name, int coreAmount, int ramsize, int mig_netspeed, int dp_intensity);
 
 XBT_PUBLIC(void) MSG_vm_destroy(msg_vm_t vm);
 
index a498281..67d1e40 100644 (file)
@@ -143,6 +143,13 @@ void MSG_vm_shutdown(msg_vm_t vm)
   vm->shutdown();
 }
 
+/* Deprecated. Please use MSG_vm_create_migratable() instead */
+msg_vm_t MSG_vm_create(msg_host_t ind_pm, const char* name, int coreAmount, int ramsize, int mig_netspeed,
+                       int dp_intensity)
+{
+  return sg_vm_create_migratable(ind_pm, name, coreAmount, ramsize, mig_netspeed, dp_intensity);
+}
+
 /** @brief Destroy a VM. Destroy the VM object from the simulation.
  *  @ingroup msg_VMs
  */