Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
no need for return after a THROW (it will break the execution path, you can be sure...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 26 Sep 2007 18:29:58 +0000 (18:29 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 26 Sep 2007 18:29:58 +0000 (18:29 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4748 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/workstation.c

index 5bcf287..f2704dd 100644 (file)
@@ -63,7 +63,6 @@ static const char *get_resource_name(void *resource_id)
 static int resource_used(void *resource_id)
 {
   THROW_IMPOSSIBLE;  /* This model does not implement parallel tasks */
-  return 0;
 }
 
 static void parallel_action_cancel(surf_action_t action)
@@ -74,7 +73,6 @@ static void parallel_action_cancel(surf_action_t action)
 static int parallel_action_free(surf_action_t action)
 {
   THROW_UNIMPLEMENTED;  /* This model does not implement parallel tasks */
-  return 0;
 }
 
 static void parallel_action_use(surf_action_t action)
@@ -161,7 +159,6 @@ static void update_resource_state(void *id,
                                  double value)
 {
   THROW_IMPOSSIBLE; /* This model does not implement parallel tasks */
-  return;
 }
 
 static surf_action_t execute(void *workstation, double size)
@@ -262,7 +259,6 @@ static surf_action_t execute_parallel_task(int workstation_nb,
                                           double rate)
 {
   THROW_UNIMPLEMENTED;  /* This model does not implement parallel tasks */
-  return NULL;
 }